From 07cde736bdae8a10cfad459920bd64724703b87e Mon Sep 17 00:00:00 2001 From: Juha Niskanen Date: Thu, 29 Apr 2021 19:32:29 +0300 Subject: [PATCH] arch: fix some printf format errors --- arch/arm/src/efm32/efm32_usbdev.c | 2 +- arch/arm/src/lpc54xx/lpc54_ethernet.c | 2 +- arch/arm/src/stm32h7/stm32_otgdev.c | 2 +- arch/arm/src/stm32l4/stm32l4_otgfsdev.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/efm32/efm32_usbdev.c b/arch/arm/src/efm32/efm32_usbdev.c index 5b29c9ca89..b81b403e8a 100644 --- a/arch/arm/src/efm32/efm32_usbdev.c +++ b/arch/arm/src/efm32/efm32_usbdev.c @@ -5597,7 +5597,7 @@ void arm_usbinitialize(void) ret = irq_attach(EFM32_IRQ_USB, efm32_usbinterrupt, NULL); if (ret < 0) { - uerr("ERROR: irq_attach failed\n", ret); + uerr("ERROR: irq_attach failed: %d\n", ret); goto errout; } diff --git a/arch/arm/src/lpc54xx/lpc54_ethernet.c b/arch/arm/src/lpc54xx/lpc54_ethernet.c index fa4499a178..223dc90cd8 100644 --- a/arch/arm/src/lpc54xx/lpc54_ethernet.c +++ b/arch/arm/src/lpc54xx/lpc54_ethernet.c @@ -3048,7 +3048,7 @@ int arm_netinitialize(int intf) { /* We could not attach the ISR to the interrupt */ - nerr("ERROR: irq_attach failed: %d\n", ret); + nerr("ERROR: irq_attach failed: %d\n", ret); return -EAGAIN; } diff --git a/arch/arm/src/stm32h7/stm32_otgdev.c b/arch/arm/src/stm32h7/stm32_otgdev.c index c5e38b7a33..09f6778887 100644 --- a/arch/arm/src/stm32h7/stm32_otgdev.c +++ b/arch/arm/src/stm32h7/stm32_otgdev.c @@ -5608,7 +5608,7 @@ void arm_usbinitialize(void) ret = irq_attach(STM32_IRQ_OTG, stm32_usbinterrupt, NULL); if (ret < 0) { - uerr("irq_attach failed\n", ret); + uerr("ERROR: irq_attach failed: %d\n", ret); goto errout; } diff --git a/arch/arm/src/stm32l4/stm32l4_otgfsdev.c b/arch/arm/src/stm32l4/stm32l4_otgfsdev.c index 93ed1a58ef..2bfe4cef08 100644 --- a/arch/arm/src/stm32l4/stm32l4_otgfsdev.c +++ b/arch/arm/src/stm32l4/stm32l4_otgfsdev.c @@ -5725,7 +5725,7 @@ void arm_usbinitialize(void) ret = irq_attach(STM32L4_IRQ_OTGFS, stm32l4_usbinterrupt, NULL); if (ret < 0) { - uerr("irq_attach failed\n", ret); + uerr("ERROR: irq_attach failed: %d\n", ret); goto errout; }