examples/module/module_main.c: Fix printf format warnings

This commit is contained in:
YAMAMOTO Takashi 2020-11-10 23:54:36 +09:00 committed by Xiang Xiao
parent 4d00277111
commit 0d09a09f33

View File

@ -321,7 +321,7 @@ int main(int argc, FAR char *argv[])
exit(EXIT_FAILURE);
}
printf("main: Read %d bytes: %d\n", (int)nbytes);
printf("main: Read %d bytes\n", (int)nbytes);
lib_dumpbuffer("main: Bytes read", (FAR const uint8_t *)buffer, nbytes);
/* Write to the character driver */
@ -335,7 +335,7 @@ int main(int argc, FAR char *argv[])
exit(EXIT_FAILURE);
}
printf("main: Wrote %d bytes: %d\n", (int)nbytes);
printf("main: Wrote %d bytes\n", (int)nbytes);
lib_dumpbuffer("main: Bytes written", (FAR const uint8_t *)g_write_string,
nbytes);