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

pkarashchenko 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 cc7653b8c fix resetcause nsh command print
cc7653b8c is described below

commit cc7653b8c7734e87b8a281c8e80abfeaadb17983
Author: 田昕 <[email protected]>
AuthorDate: Thu Apr 14 20:11:50 2022 +0800

    fix resetcause nsh command print
    
    Signed-off-by: 田昕 <[email protected]>
---
 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 3e987cfbb..dcad16d26 100644
--- a/nshlib/nsh_syscmds.c
+++ b/nshlib/nsh_syscmds.c
@@ -334,7 +334,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;
 }

Reply via email to