mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-13 14:10:23 +00:00
canutils/libcanutils/lib.c: Fix a printf format warning
This commit is contained in:
parent
0b792be90a
commit
d671dcc40c
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ void snprintf_can_error_frame(char *buf, size_t len, const struct canfd_frame *c
|
|||
|
||||
class = cf->can_id & CAN_EFF_MASK;
|
||||
if (class > (1 << ARRAY_SIZE(error_classes))) {
|
||||
fprintf(stderr, "Error class %#x is invalid\n", class);
|
||||
fprintf(stderr, "Error class %#jx is invalid\n", (uintmax_t)class);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue