mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 14:07:17 +00:00
drivers/mtd/mtd_partition.c: Fix printf format warnings
This commit is contained in:
parent
3b9e72c898
commit
565a67262b
1 changed files with 7 additions and 6 deletions
|
|
@ -629,14 +629,15 @@ static ssize_t part_procfs_read(FAR struct file *filep, FAR char *buffer,
|
|||
|
||||
/* Terminate the partition name and add to output buffer */
|
||||
|
||||
ret = snprintf(&buffer[total], buflen - total, "%s%7d %7d %s\n",
|
||||
partname, attr->nextpart->firstblock / blkpererase,
|
||||
attr->nextpart->neraseblocks,
|
||||
ret = snprintf(&buffer[total], buflen - total, "%s%7ju %ju %s\n",
|
||||
partname,
|
||||
(uintmax_t)attr->nextpart->firstblock / blkpererase,
|
||||
(uintmax_t)attr->nextpart->neraseblocks,
|
||||
attr->nextpart->parent->name);
|
||||
#else
|
||||
ret = snprintf(&buffer[total], buflen - total, "%7d %7d %s\n",
|
||||
attr->nextpart->firstblock / blkpererase,
|
||||
attr->nextpart->neraseblocks,
|
||||
ret = snprintf(&buffer[total], buflen - total, "%7ju %7ju %s\n",
|
||||
(uintmax_t)attr->nextpart->firstblock / blkpererase,
|
||||
(uintmax_t)attr->nextpart->neraseblocks,
|
||||
attr->nextpart->parent->name);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue