Skip to content

Commit a6f738f

Browse files
committed
fix: use PRIu32 for uint32_t format specifiers in dronecan LOG_DEBUG
1 parent 52008bd commit a6f738f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/drivers/dronecan/dronecan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ void dronecanUpdate(timeUs_t currentTimeUs)
472472

473473
canardSTM32GetProtocolStatus(&protocolStatus);
474474
if (protocolStatus.BusOff != 0 || protocolStatus.ErrorPassive != 0) {
475-
LOG_DEBUG(CAN, "CAN status: BusOff=%u ErrorPassive=%u", protocolStatus.BusOff, protocolStatus.ErrorPassive);
475+
LOG_DEBUG(CAN, "CAN status: BusOff=%" PRIu32 " ErrorPassive=%" PRIu32, protocolStatus.BusOff, protocolStatus.ErrorPassive);
476476
}
477477
if (protocolStatus.BusOff != 0) {
478478
dronecanState = STATE_DRONECAN_BUS_OFF;

0 commit comments

Comments
 (0)