s32k1xx:flexcan Use inttypes in printing macro

This commit is contained in:
David Sidrane 2021-04-27 04:21:21 -07:00 committed by Xiang Xiao
parent 7fb59e4f36
commit 8624f9a444

View File

@ -636,7 +636,7 @@ static int s32k1xx_transmit(FAR struct s32k1xx_driver_s *priv)
if (mbi == TXMBCOUNT)
{
nwarn("No TX MB available mbi %" PRIi32 "\n", mbi);
nwarn("No TX MB available mbi %" PRIu32 "\n", mbi);
NETDEV_TXERRORS(&priv->dev);
return 0; /* No transmission for you! */
}
@ -1658,7 +1658,7 @@ static int s32k1xx_initialize(struct s32k1xx_driver_s *priv)
for (i = 0; i < RXMBCOUNT; i++)
{
ninfo("Set MB%" PRIi32 " to receive %p\n", i, &priv->rx[i]);
ninfo("Set MB%" PRIu32 " to receive %p\n", i, &priv->rx[i]);
priv->rx[i].cs.edl = 0x1;
priv->rx[i].cs.brs = 0x1;
priv->rx[i].cs.esi = 0x0;
@ -1722,8 +1722,8 @@ static void s32k1xx_reset(struct s32k1xx_driver_s *priv)
for (i = 0; i < TOTALMBCOUNT; i++)
{
ninfo("MB %" PRIi32 " %p\n", i, &priv->rx[i]);
ninfo("MB %" PRIi32 " %p\n", i, &priv->rx[i].id.w);
ninfo("MB %" PRIu32 " %p\n", i, &priv->rx[i]);
ninfo("MB %" PRIu32 " %p\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;