isotp: fix printf warning on 32 bit systems
Use "z" modifier to print sizeof() values. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/1/head
parent
e71816295b
commit
002f8eba87
|
|
@ -220,7 +220,7 @@ int main(int argc, char **argv)
|
|||
perror("read");
|
||||
return 1;
|
||||
} else if (nbytes != CAN_MTU && nbytes != CANFD_MTU) {
|
||||
fprintf(stderr, "read: incomplete CAN frame %lu %d\n", sizeof(frame), nbytes);
|
||||
fprintf(stderr, "read: incomplete CAN frame %zu %d\n", sizeof(frame), nbytes);
|
||||
return 1;
|
||||
} else {
|
||||
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ int main(int argc, char **argv)
|
|||
running = 0;
|
||||
continue;
|
||||
} else if (nbytes != CAN_MTU && nbytes != CANFD_MTU) {
|
||||
fprintf(stderr, "read: incomplete CAN frame %lu %d\n", sizeof(frame), nbytes);
|
||||
fprintf(stderr, "read: incomplete CAN frame %zu %d\n", sizeof(frame), nbytes);
|
||||
ret = nbytes;
|
||||
running = 0;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue