rptun: add rptun dump support
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
d5aae96523
commit
e0e5652de4
@ -470,7 +470,8 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_RPTUN) && !defined(CONFIG_NSH_DISABLE_RPTUN)
|
#if defined(CONFIG_RPTUN) && !defined(CONFIG_NSH_DISABLE_RPTUN)
|
||||||
{ "rptun", cmd_rptun, 3, 4, "start|stop|reset|panic <dev-path> [value]" },
|
{ "rptun", cmd_rptun, 3, 4,
|
||||||
|
"start|stop|reset|panic|dump <dev-path> [value]" },
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_NSH_DISABLE_SET
|
#ifndef CONFIG_NSH_DISABLE_SET
|
||||||
|
@ -377,6 +377,10 @@ int cmd_rptun(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
{
|
{
|
||||||
cmd = RPTUNIOC_PANIC;
|
cmd = RPTUNIOC_PANIC;
|
||||||
}
|
}
|
||||||
|
else if (strcmp(argv[1], "dump") == 0)
|
||||||
|
{
|
||||||
|
cmd = RPTUNIOC_DUMP;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nsh_output(vtbl, g_fmtarginvalid, argv[1]);
|
nsh_output(vtbl, g_fmtarginvalid, argv[1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user