From a1c7ea1dae9367f05c02c4c57c1dc58a1500353b Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 20 Nov 2020 17:56:19 +0900 Subject: [PATCH] arch/arm/src/stm32/stm32_otgfsdev.c: Fix syslog formats --- arch/arm/src/stm32/stm32_otgfsdev.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/stm32/stm32_otgfsdev.c b/arch/arm/src/stm32/stm32_otgfsdev.c index 667a2a4ad0..13ef993f92 100644 --- a/arch/arm/src/stm32/stm32_otgfsdev.c +++ b/arch/arm/src/stm32/stm32_otgfsdev.c @@ -41,6 +41,7 @@ #include #include +#include #include #include #include @@ -2727,7 +2728,7 @@ static inline void stm32_epout_interrupt(FAR struct stm32_usbdev_s *priv) if ((daint & 1) != 0) { regval = stm32_getreg(STM32_OTGFS_DOEPINT(epno)); - uinfo("DOEPINT(%d) = %08x\n", epno, regval); + uinfo("DOEPINT(%d) = %08" PRIx32 "\n", epno, regval); stm32_putreg(0xff, STM32_OTGFS_DOEPINT(epno)); } @@ -2965,7 +2966,7 @@ static inline void stm32_epin_interrupt(FAR struct stm32_usbdev_s *priv) { if ((daint & 1) != 0) { - uinfo("DIEPINT(%d) = %08x\n", + uinfo("DIEPINT(%d) = %08" PRIx32 "\n", epno, stm32_getreg(STM32_OTGFS_DIEPINT(epno))); stm32_putreg(0xff, STM32_OTGFS_DIEPINT(epno)); } @@ -5621,7 +5622,7 @@ void arm_usbinitialize(void) ret = irq_attach(STM32_IRQ_OTGFS, stm32_usbinterrupt, NULL); if (ret < 0) { - uerr("ERROR: irq_attach failed\n", ret); + uerr("ERROR: irq_attach failed: %d\n", ret); goto errout; }