You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/08/27 18:28:09 UTC

[incubator-nuttx] branch master updated (2568cc1 -> 84e9ff0)

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

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


    from 2568cc1  nuttx:Correct code comment errors
     new f153e42  drivers/mtd: Fix /proc/partitions column alignment on NSH
     new 84e9ff0  drivers/mtd: Fix code alignment for compliance to coding standard

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 drivers/mtd/mtd_partition.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

[incubator-nuttx] 01/02: drivers/mtd: Fix /proc/partitions column alignment on NSH

Posted by xi...@apache.org.
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 <gu...@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 <gu...@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,

[incubator-nuttx] 02/02: drivers/mtd: Fix code alignment for compliance to coding standard

Posted by xi...@apache.org.
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 84e9ff085f8d1dd44595874112e084159c9f0f3f
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Fri Aug 27 14:30:30 2021 -0300

    drivers/mtd: Fix code alignment for compliance to coding standard
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 drivers/mtd/mtd_partition.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/mtd/mtd_partition.c b/drivers/mtd/mtd_partition.c
index 61b4fe4..182064d 100644
--- a/drivers/mtd/mtd_partition.c
+++ b/drivers/mtd/mtd_partition.c
@@ -633,16 +633,16 @@ 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 %7ju   %s\n",
-                  partname,
-                  (uintmax_t)attr->nextpart->firstblock / blkpererase,
-                  (uintmax_t)attr->nextpart->neraseblocks,
-                  attr->nextpart->parent->name);
+                         "%s%7ju %7ju   %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, "%7ju %7ju   %s\n",
-                  (uintmax_t)attr->nextpart->firstblock / blkpererase,
-                  (uintmax_t)attr->nextpart->neraseblocks,
-                  attr->nextpart->parent->name);
+                         (uintmax_t)attr->nextpart->firstblock / blkpererase,
+                         (uintmax_t)attr->nextpart->neraseblocks,
+                         attr->nextpart->parent->name);
 #endif
 
           if (ret + total < buflen)