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 2022/07/21 13:13:15 UTC

[incubator-nuttx-apps] branch master updated: cmd_reset_cause:remove ouput space.

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-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new dbfe5fb57 cmd_reset_cause:remove ouput space.
dbfe5fb57 is described below

commit dbfe5fb5734c25e8e534c178fda6254e916ff4b4
Author: anjiahao <an...@xiaomi.com>
AuthorDate: Mon Jun 20 16:23:07 2022 +0800

    cmd_reset_cause:remove ouput space.
    
    can use ouput string set a env to argv
    Signed-off-by: anjiahao <an...@xiaomi.com>
---
 nshlib/nsh_syscmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c
index 9206c7d57..9bdc9dad3 100644
--- a/nshlib/nsh_syscmds.c
+++ b/nshlib/nsh_syscmds.c
@@ -351,7 +351,7 @@ int cmd_reset_cause(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
       return ERROR;
     }
 
-  nsh_output(vtbl, "cause:0x%x, flag:0x%" PRIx32 "\n",
+  nsh_output(vtbl, "cause:0x%x,flag:0x%" PRIx32 "\n",
              cause.cause, cause.flag);
   return OK;
 }