This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit f153e42fcba9686d36b5d2a38f57d89f6572cef1
Author: Gustavo Henrique Nihei <gustavo.ni...@espressif.com>
AuthorDate: Fri Aug 27 13:37:37 2021 -0300

    drivers/mtd: Fix /proc/partitions column alignment on NSH
    
    Signed-off-by: Gustavo Henrique Nihei <gustavo.ni...@espressif.com>
---
 drivers/mtd/mtd_partition.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/mtd_partition.c b/drivers/mtd/mtd_partition.c
index 8321fc6..61b4fe4 100644
--- a/drivers/mtd/mtd_partition.c
+++ b/drivers/mtd/mtd_partition.c
@@ -632,7 +632,8 @@ 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%7ju %ju   %s\n",
+          ret = snprintf(&buffer[total], buflen - total,
+                  "%s%7ju %7ju   %s\n",
                   partname,
                   (uintmax_t)attr->nextpart->firstblock / blkpererase,
                   (uintmax_t)attr->nextpart->neraseblocks,

Reply via email to