From a927f98a2383ea53221e273b1dab040ff2706e0f Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sat, 5 Dec 2020 10:19:17 +0900 Subject: [PATCH] arch/arm/src/imxrt/imxrt_flexcan.c: Fix syslog formats --- arch/arm/src/imxrt/imxrt_flexcan.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/imxrt/imxrt_flexcan.c b/arch/arm/src/imxrt/imxrt_flexcan.c index c6839c61f1..e948e60f87 100644 --- a/arch/arm/src/imxrt/imxrt_flexcan.c +++ b/arch/arm/src/imxrt/imxrt_flexcan.c @@ -24,6 +24,7 @@ #include +#include #include #include #include @@ -602,7 +603,7 @@ static int imxrt_transmit(FAR struct imxrt_driver_s *priv) if (mbi == TXMBCOUNT) { - nwarn("No TX MB available mbi %i\r\n", mbi); + nwarn("No TX MB available mbi %" PRIi32 "\r\n", mbi); return 0; /* No transmission for you! */ } @@ -1567,7 +1568,7 @@ static int imxrt_initialize(struct imxrt_driver_s *priv) for (i = 0; i < RXMBCOUNT; i++) { - ninfo("Set MB%i to receive %p\r\n", i, &priv->rx[i]); + ninfo("Set MB%" PRIi32 " to receive %p\r\n", i, &priv->rx[i]); priv->rx[i].cs.edl = 0x1; priv->rx[i].cs.brs = 0x1; priv->rx[i].cs.esi = 0x0; @@ -1631,8 +1632,8 @@ static void imxrt_reset(struct imxrt_driver_s *priv) for (i = 0; i < TOTALMBCOUNT; i++) { - ninfo("MB %i %p\r\n", i, &priv->rx[i]); - ninfo("MB %i %p\r\n", i, &priv->rx[i].id.w); + ninfo("MB %" PRIi32 " %p\r\n", i, &priv->rx[i]); + ninfo("MB %" PRIi32 " %p\r\n", i, &priv->rx[i].id.w); priv->rx[i].cs.cs = 0x0; priv->rx[i].id.w = 0x0; priv->rx[i].data[0].w00 = 0x0;