arch/arm/src/s32k1xx/s32k1xx_flexcan.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-12-06 19:08:21 +09:00 committed by Xiang Xiao
parent 60795464ef
commit a600b2478d
1 changed files with 5 additions and 4 deletions

View File

@ -24,6 +24,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <inttypes.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <unistd.h> #include <unistd.h>
@ -637,7 +638,7 @@ static int s32k1xx_transmit(FAR struct s32k1xx_driver_s *priv)
if (mbi == TXMBCOUNT) 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! */ 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++) 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.edl = 0x1;
priv->rx[i].cs.brs = 0x1; priv->rx[i].cs.brs = 0x1;
priv->rx[i].cs.esi = 0x0; 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++) for (i = 0; i < TOTALMBCOUNT; i++)
{ {
ninfo("MB %i %p\r\n", i, &priv->rx[i]); ninfo("MB %" PRIi32 " %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].id.w);
priv->rx[i].cs.cs = 0x0; priv->rx[i].cs.cs = 0x0;
priv->rx[i].id.w = 0x0; priv->rx[i].id.w = 0x0;
priv->rx[i].data[0].w00 = 0x0; priv->rx[i].data[0].w00 = 0x0;