arch/arm/src/stm32f7/stm32_otghost.c: fix syslog formats
#include <nuttx/config.h>
#include <sys/types.h>
+#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -2505,7 +2506,8 @@ static inline void stm32_gint_hcinisr(struct stm32_usbhost_s *priv,
/* AND the two to get the set of enabled, pending HC interrupts */
pending &= regval;
- uinfo("HCINTMSK%d: %08x pending: %08x\n", chidx, regval, pending);
+ uinfo("HCINTMSK%d: %08" PRIx32 " pending: %08" PRIx32 "\n",
+ chidx, regval, pending);
/* Check for a pending ACK response received/transmitted interrupt */
@@ -2759,7 +2761,8 @@ static inline void stm32_gint_hcoutisr(struct stm32_usbhost_s *priv,
/* AND the two to get the set of enabled, pending HC interrupts */
pending &= regval;
- uinfo("HCINTMSK%d: %08x pending: %08x\n", chidx, regval, pending);
+ uinfo("HCINTMSK%d: %08" PRIx32 " pending: %08" PRIx32 "\n",
+ chidx, regval, pending);
/* Check for a pending ACK response received/transmitted interrupt */
@@ -3079,7 +3082,7 @@ static inline void stm32_gint_rxflvlisr(struct stm32_usbhost_s *priv)
/* Read and pop the next status from the Rx FIFO */
grxsts = stm32_getreg(STM32_OTG_GRXSTSP);
- uinfo("GRXSTS: %08x\n", grxsts);
+ uinfo("GRXSTS: %08" PRIx32 "\n", grxsts);
/* Isolate the channel number/index in the status word */
@@ -3233,7 +3236,7 @@ static inline void stm32_gint_nptxfeisr(struct stm32_usbhost_s *priv)
/* Write the next group of packets into the Tx FIFO */
- uinfo("HNPTXSTS: %08x chidx: %d avail: %d buflen: %d xfrd: %d "
+ uinfo("HNPTXSTS: %08" PRIx32 " chidx: %d avail: %d buflen: %d xfrd: %d "
"wrsize: %d\n",
regval, chidx, avail, chan->buflen, chan->xfrd, wrsize);
@@ -3323,7 +3326,8 @@ static inline void stm32_gint_ptxfeisr(struct stm32_usbhost_s *priv)
/* Write the next group of packets into the Tx FIFO */
- uinfo("HPTXSTS: %08x chidx: %d avail: %d buflen: %d xfrd: %d wrsize: %d\n",
+ uinfo("HPTXSTS: %08" PRIx32
+ " chidx: %d avail: %d buflen: %d xfrd: %d wrsize: %d\n",
regval, chidx, avail, chan->buflen, chan->xfrd, wrsize);
stm32_gint_wrpacket(priv, chan->buffer, chidx, wrsize);
