This is an automated email from the ASF dual-hosted git repository.
casaroli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 63e9db801 nshlib: remove the "rpmsg panic" and "rptun panic" commands
63e9db801 is described below
commit 63e9db801e36b07365884c99ba87ca350ca70b74
Author: Xiang Xiao <[email protected]>
AuthorDate: Mon Dec 16 01:56:14 2024 +0800
nshlib: remove the "rpmsg panic" and "rptun panic" commands
to simplify the implementation of rpmsg/rptun driver
Signed-off-by: Xiang Xiao <[email protected]>
---
nshlib/nsh_command.c | 4 ++--
nshlib/nsh_syscmds.c | 8 ++------
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c
index b7aa1b085..59fcc2559 100644
--- a/nshlib/nsh_command.c
+++ b/nshlib/nsh_command.c
@@ -553,13 +553,13 @@ static const struct cmdmap_s g_cmdmap[] =
#if defined(CONFIG_RPMSG) && !defined(CONFIG_NSH_DISABLE_RPMSG)
CMD_MAP("rpmsg", cmd_rpmsg, 2, 7,
- "<panic|dump|ping> <path|all>"
+ "<dump|ping> <path|all>"
" [value|times length ack sleep]"),
#endif
#if defined(CONFIG_RPTUN) && !defined(CONFIG_NSH_DISABLE_RPTUN)
CMD_MAP("rptun", cmd_rptun, 2, 7,
- "<start|stop|reset|panic|dump|ping|test> <path|all>"
+ "<start|stop|reset|dump|ping|test> <path|all>"
" [value|times length ack sleep]"),
#endif
diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c
index 34059bea2..8ab40e882 100644
--- a/nshlib/nsh_syscmds.c
+++ b/nshlib/nsh_syscmds.c
@@ -596,11 +596,7 @@ static int cmd_rpmsg_once(FAR struct nsh_vtbl_s *vtbl,
int cmd;
int fd;
- if (strcmp(argv[1], "panic") == 0)
- {
- cmd = RPMSGIOC_PANIC;
- }
- else if (strcmp(argv[1], "dump") == 0)
+ if (strcmp(argv[1], "dump") == 0)
{
cmd = RPMSGIOC_DUMP;
}
@@ -679,7 +675,7 @@ static int cmd_rpmsg_recursive(FAR struct nsh_vtbl_s *vtbl,
static int cmd_rpmsg_help(FAR struct nsh_vtbl_s *vtbl, int argc,
FAR char **argv)
{
- nsh_output(vtbl, "%s <panic|dump|test> <path>\n", argv[0]);
+ nsh_output(vtbl, "%s <dump|test> <path>\n", argv[0]);
#ifdef CONFIG_RPMSG_PING
nsh_output(vtbl, "%s ping <path> <times> <length> <cmd> "
"<period(ms)>\n\n", argv[0]);