fs/smartfs/smartfs_procfs.c: Fix printf format warnings

This commit is contained in:
YAMAMOTO Takashi 2020-11-11 16:15:30 +09:00 committed by Xiang Xiao
parent 565a67262b
commit 48765a7160
1 changed files with 3 additions and 2 deletions

View File

@ -847,10 +847,11 @@ static size_t smartfs_status_read(FAR struct file *filep, FAR char *buffer,
"Total Sectors: %d\nSector Size: %d\n" "Total Sectors: %d\nSector Size: %d\n"
"Format Sector: %d\nDir Sector: %d\n" "Format Sector: %d\nDir Sector: %d\n"
"Free Sectors: %d\nReleased Sectors: %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" "Sectors Per Block: %d\nSector Utilization:%d%%\n"
#ifdef CONFIG_MTD_SMART_WEAR_LEVEL #ifdef CONFIG_MTD_SMART_WEAR_LEVEL
"Uneven Wear Count: %d\n" "Uneven Wear Count: %" PRIu32 "\n"
#endif #endif
, ,
procfs_data.formatversion, procfs_data.namelen, procfs_data.formatversion, procfs_data.namelen,