anchao opened a new pull request, #16473: URL: https://github.com/apache/nuttx/pull/16473
## Summary drivers/mtd: fix compile warning ``` mtd/mtd_rwbuffer.c:42: mtd/mtd_rwbuffer.c: In function 'mtd_erase': mtd/mtd_rwbuffer.c:189:9: warning: format '%zx' expects argument of type 'size_t', but argument 3 has type 'long long int' [-Wformat=] 189 | finfo("block: %08zx nsectors: %zu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 190 | (intmax_t)block, nsectors); | ~~~~~~~~~~~~~~~ | | | long long int mtd/mtd_rwbuffer.c:189:21: note: format string is defined here 189 | finfo("block: %08zx nsectors: %zu\n", | ~~~~^ | | | unsigned int | %08llx mtd/mtd_rwbuffer.c: In function 'mtd_ioctl': mtd/mtd_rwbuffer.c:298:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=] 298 | finfo("blocksize: %d erasesize: %d neraseblocks: %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 299 | geo->blocksize, geo->erasesize, geo->neraseblocks); | ~~~~~~~~~~~~~~ | | | uint32_t {aka long unsigned int} ... ``` Signed-off-by: chao an <anchao.arc...@bytedance.com> ## Impact N/A ## Testing enable CONFIG_MTD_READAHEAD=y CONFIG_MTD_WRBUFFER=y without warning -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org