nuttx/drivers/mtd
chao an 2ff44978c2 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.archer@bytedance.com>
2025-06-03 17:33:14 +08:00
..
.gitignore
at24xx.c
at25.c
at25ee.c
at45db.c driver/mtd/at45db.c: write to page without built-in erase 2025-03-26 10:29:12 +08:00
cfi.c
cfi.h
CMakeLists.txt mtd/mtd_cfi: cfi flash bind to mtd interface 2025-02-11 17:23:44 +08:00
dhara.c
filemtd.c
ftl.c
gd5f.c
gd25.c
gd55.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
hamming.c
is25xp.c
Kconfig mtd/mtd_cfi: cfi flash bind to mtd interface 2025-02-11 17:23:44 +08:00
m25px.c
Make.defs mtd/mtd_cfi: cfi flash bind to mtd interface 2025-02-11 17:23:44 +08:00
mtd_cfi.c drivers/mtd/mtd_cfi: Add MTDIOC_ERASESTATE 2025-03-28 19:19:35 +08:00
mtd_config.c
mtd_config_fs.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mtd_modeltab.c
mtd_nand.c
mtd_nandecc.c
mtd_nandmodel.c
mtd_nandram.c
mtd_nandscheme.c
mtd_nandwrapper.c
mtd_onfi.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mtd_partition.c
mtd_progmem.c
mtd_rwbuffer.c drivers/mtd: fix compile warning 2025-06-03 17:33:14 +08:00
mx25lx.c
mx25rxx.c
mx35.c
n25qxxx.c
nullmtd.c
rammtd.c
ramtron.c driver/mtd: ramtron multi-device spi bus support 2025-03-26 19:26:01 +08:00
rpmsgmtd.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
rpmsgmtd.h
rpmsgmtd_server.c
s25fl1.c
sector512.c
skeleton.c
smart.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
sst25.c
sst25xx.c
sst26.c
sst39vf.c
w25.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
w25qxxxjv.c mtd/w25q: ensure the correct behavior if erase sector fails 2025-02-13 10:02:06 +08:00