arch/arm/src/stm32h7/stm32_otghost.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-22 19:55:00 +09:00 committed by Xiang Xiao
parent 679bf60efc
commit 41db756d78

View File

@ -42,6 +42,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
@ -2525,7 +2526,8 @@ static inline void stm32_gint_hcinisr(FAR 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 */
@ -2778,7 +2780,8 @@ static inline void stm32_gint_hcoutisr(FAR 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 */
@ -3098,7 +3101,7 @@ static inline void stm32_gint_rxflvlisr(FAR 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 */
@ -3252,7 +3255,7 @@ static inline void stm32_gint_nptxfeisr(FAR 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);
@ -3342,7 +3345,8 @@ static inline void stm32_gint_ptxfeisr(FAR 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);
@ -4834,7 +4838,7 @@ static int stm32_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
unsigned int chidx = (unsigned int)ep;
irqstate_t flags;
uinfo("chidx: %u: %d\n", chidx);
uinfo("chidx: %u\n", chidx);
DEBUGASSERT(priv && chidx < STM32_MAX_TX_FIFOS);
chan = &priv->chan[chidx];