drivers/can/mcp2515.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-11-28 13:58:15 +09:00 committed by Xiang Xiao
parent 917c88017f
commit bd1a586838

View File

@ -41,6 +41,7 @@
#include <nuttx/config.h>
#include <inttypes.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdint.h>
@ -1760,8 +1761,8 @@ static int mcp2515_send(FAR struct can_dev_s *dev, FAR struct can_msg_s *msg)
config = priv->config;
caninfo("CAN%d\n", config->devid);
caninfo("CAN%d ID: %d DLC: %d\n",
config->devid, msg->cm_hdr.ch_id, msg->cm_hdr.ch_dlc);
caninfo("CAN%d ID: %" PRId32 " DLC: %d\n",
config->devid, (uint32_t)msg->cm_hdr.ch_id, msg->cm_hdr.ch_dlc);
UNUSED(config);
/* Get exclusive access to the MCP2515 peripheral */