gustavonihei commented on a change in pull request #3651:
URL: https://github.com/apache/incubator-nuttx/pull/3651#discussion_r625376869
##########
File path: arch/arm/src/stm32f7/stm32_can.c
##########
@@ -1252,8 +1260,8 @@ static int stm32can_send(FAR struct can_dev_s *dev,
int dlc;
int txmb;
- caninfo("CAN%d ID: %d DLC: %d\n",
- priv->port, msg->cm_hdr.ch_id, msg->cm_hdr.ch_dlc);
+ caninfo("CAN%" PRId8 " ID: %" PRId32 " DLC: %" PRId8 "\n",
+ priv->port, (uint32_t)msg->cm_hdr.ch_id, msg->cm_hdr.ch_dlc);
Review comment:
```suggestion
caninfo("CAN%" PRIu8 " ID: %" PRIu32 " DLC: %" PRIu8 "\n",
priv->port, (uint32_t)msg->cm_hdr.ch_id, msg->cm_hdr.ch_dlc);
```
These variables are all of unsigned types.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]