From 4cb67b0b1b9ce6ba8c524a3a5b4fbb8f8aa184bb Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 11 Feb 2012 15:27:44 +0000 Subject: Add dmesg command that can be used to dump the syslog git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4382 42af7a65-404d-4744-a932-0658087f49c3 --- apps/nshlib/nsh_parse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/nshlib/nsh_parse.c') diff --git a/apps/nshlib/nsh_parse.c b/apps/nshlib/nsh_parse.c index ff1a50962..67d529013 100644 --- a/apps/nshlib/nsh_parse.c +++ b/apps/nshlib/nsh_parse.c @@ -167,6 +167,9 @@ static const struct cmdmap_s g_cmdmap[] = # ifndef CONFIG_NSH_DISABLE_DD { "dd", cmd_dd, 3, 6, "if= of= [bs=] [count=] [skip=]" }, # endif +# if defined(CONFIG_SYSLOG) && !defined(CONFIG_NSH_DISABLE_DMESG) + { "dmesg", cmd_dmesg, 1, 1, NULL }, +# endif #endif #ifndef CONFIG_NSH_DISABLE_ECHO -- cgit v1.2.3