examples/mtdpart:fix compiling warning in printf.

Signed-off-by: 田昕 <tianxin7@xiaomi.com>
This commit is contained in:
田昕 2023-08-09 11:12:32 +08:00 committed by Xiang Xiao
parent 2909e8d7a0
commit 5449126959

View File

@ -221,7 +221,7 @@ int main(int argc, FAR char *argv[])
partsize = nblocks * geo.blocksize;
printf(" No. partitions: %u\n", CONFIG_EXAMPLES_MTDPART_NPARTITIONS);
printf(" Partition size: %ju Blocks (%lu bytes)\n", (uintmax_t)nblocks,
printf(" Partition size: %ju Blocks (%zu bytes)\n", (uintmax_t)nblocks,
partsize);
/* Now create MTD FLASH partitions */