From a600b2478deaf614e0069dd255205bed02f0e336 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 6 Dec 2020 19:08:21 +0900 Subject: [PATCH] arch/arm/src/s32k1xx/s32k1xx_flexcan.c: Fix syslog formats --- arch/arm/src/s32k1xx/s32k1xx_flexcan.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/s32k1xx/s32k1xx_flexcan.c b/arch/arm/src/s32k1xx/s32k1xx_flexcan.c index 8d28042d71..c7f6aef3d6 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_flexcan.c +++ b/arch/arm/src/s32k1xx/s32k1xx_flexcan.c @@ -24,6 +24,7 @@ #include +#include #include #include #include @@ -637,7 +638,7 @@ static int s32k1xx_transmit(FAR struct s32k1xx_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! */ } @@ -1597,7 +1598,7 @@ static int s32k1xx_initialize(struct s32k1xx_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; @@ -1661,8 +1662,8 @@ static void s32k1xx_reset(struct s32k1xx_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;