From 48765a716060b20ebd0689249a885145b52a8dfd Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 11 Nov 2020 16:15:30 +0900 Subject: [PATCH] fs/smartfs/smartfs_procfs.c: Fix printf format warnings --- fs/smartfs/smartfs_procfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/smartfs/smartfs_procfs.c b/fs/smartfs/smartfs_procfs.c index c302d302c2..1d6db338aa 100644 --- a/fs/smartfs/smartfs_procfs.c +++ b/fs/smartfs/smartfs_procfs.c @@ -847,10 +847,11 @@ static size_t smartfs_status_read(FAR struct file *filep, FAR char *buffer, "Total Sectors: %d\nSector Size: %d\n" "Format Sector: %d\nDir Sector: %d\n" "Free Sectors: %d\nReleased Sectors: %d\n" - "Unused Sectors: %d\nBlock Erases: %d\n" + "Unused Sectors: %" PRIu32 "\n" + "Block Erases: %" PRIu32 "\n" "Sectors Per Block: %d\nSector Utilization:%d%%\n" #ifdef CONFIG_MTD_SMART_WEAR_LEVEL - "Uneven Wear Count: %d\n" + "Uneven Wear Count: %" PRIu32 "\n" #endif , procfs_data.formatversion, procfs_data.namelen,