From cc7653b8c7734e87b8a281c8e80abfeaadb17983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E6=98=95?= Date: Thu, 14 Apr 2022 20:11:50 +0800 Subject: [PATCH] fix resetcause nsh command print MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田昕 --- 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; }