examples/mtdrwb/mtdrwb_main.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-11 08:56:45 +09:00 committed by Xiang Xiao
parent 3993e99471
commit 54cb3ca933

View File

@ -375,7 +375,7 @@ int main(int argc, FAR char *argv[])
nbytes = read(fd, buffer, geo.blocksize);
if (nbytes != 0)
{
printf("ERROR: Expected end-of-file from /dev/mtd0 failed: %d %d\n",
printf("ERROR: Expected end-of-file from /dev/mtd0 failed: %zd %d\n",
nbytes, errno);
fflush(stdout);
exit(20);