You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ar...@apache.org on 2022/11/20 11:03:25 UTC

[incubator-nuttx-apps] branch master updated (bb24794fc -> bce24201c)

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

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


    from bb24794fc system/ping[6]: ping[6] should also be enabled if NET_ICMP[v6]_NO_STACK == y
     new d70651006 Fix Error: vi.c:888:57: error: format string is not a string literal (potentially insecure)
     new bce24201c Fix ft80x_coprocessor.c:3911:14: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')

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:
 examples/ft80x/ft80x_coprocessor.c | 3 ++-
 system/vi/vi.c                     | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)


[incubator-nuttx-apps] 02/02: Fix ft80x_coprocessor.c:3911:14: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit bce24201c7c7aa902de7f746d45b8631851c955c
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Nov 20 06:25:49 2022 +0800

    Fix ft80x_coprocessor.c:3911:14: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 examples/ft80x/ft80x_coprocessor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/ft80x/ft80x_coprocessor.c b/examples/ft80x/ft80x_coprocessor.c
index 1e56f0a88..0060f6670 100644
--- a/examples/ft80x/ft80x_coprocessor.c
+++ b/examples/ft80x/ft80x_coprocessor.c
@@ -3907,7 +3907,8 @@ int ft80x_coproc_calibrate(int fd, FAR struct ft80x_dlbuffer_s *buffer)
       return ret;
     }
 
-  ft80x_info("Transform A-F: {%08lx, %08lx, %08lx, %08lx, %08lx, %08lx}\n",
+  ft80x_info("Transform A-F: {%08" PRIx32 ", %08" PRIx32 ", %08"
+             PRIx32 ", %08" PRIx32 ", %08" PRIx32 ", %08" PRIx32 "}\n",
              matrix[0], matrix[1], matrix[2],
              matrix[3], matrix[4], matrix[5]);
   return OK;


[incubator-nuttx-apps] 01/02: Fix Error: vi.c:888:57: error: format string is not a string literal (potentially insecure)

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit d706510064be474783881d69c30d8669ae7de18b
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Nov 20 04:11:35 2022 +0800

    Fix Error: vi.c:888:57: error: format string is not a string literal (potentially insecure)
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 system/vi/vi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/vi/vi.c b/system/vi/vi.c
index 7baff382d..0b23da4fb 100644
--- a/system/vi/vi.c
+++ b/system/vi/vi.c
@@ -885,7 +885,7 @@ static void vi_printf(FAR struct vi_s *vi, FAR const char *prefix,
 
   /* Expand the prefix message in the scratch buffer */
 
-  len = prefix ? snprintf(vi->scratch, SCRATCH_BUFSIZE, prefix) : 0;
+  len = prefix ? snprintf(vi->scratch, SCRATCH_BUFSIZE, "%s", prefix) : 0;
 
   va_start(ap, fmt);
   len += vsnprintf(vi->scratch + len, SCRATCH_BUFSIZE - len, fmt, ap);