examples/can/can_main.c: Fix printf format warnings

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 17:34:41 +09:00 committed by Xiang Xiao
parent ff130be078
commit b2299b4c8f

View File

@ -352,7 +352,7 @@ int main(int argc, FAR char *argv[])
goto errout_with_dev;
}
printf(" ID: %4u DLC: %d\n", msgid, msgdlc);
printf(" ID: %4" PRIu32 " DLC: %d\n", msgid, msgdlc);
#endif
@ -462,7 +462,7 @@ int main(int argc, FAR char *argv[])
/* Report success */
printf(" ID: %4u DLC: %d -- OK\n", msgid, msgdlc);
printf(" ID: %4" PRIu32 " DLC: %d -- OK\n", msgid, msgdlc);
#else