You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2022/07/25 06:27:52 UTC
[incubator-nuttx-apps] branch master updated: nshlib/dmesg: update config about enable dmesg
This is an automated email from the ASF dual-hosted git repository.
jerpelea 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 45615a8d9 nshlib/dmesg: update config about enable dmesg
45615a8d9 is described below
commit 45615a8d9def2e72a5dd97906508920356111969
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Mon Jun 27 16:24:05 2022 +0800
nshlib/dmesg: update config about enable dmesg
Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
nshlib/nsh.h | 2 +-
nshlib/nsh_command.c | 2 +-
nshlib/nsh_fscmds.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/nshlib/nsh.h b/nshlib/nsh.h
index 8c7baf4bb..2bf66591b 100644
--- a/nshlib/nsh.h
+++ b/nshlib/nsh.h
@@ -1014,7 +1014,7 @@ int cmd_irqinfo(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
#ifndef CONFIG_NSH_DISABLE_LS
int cmd_ls(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
#endif
-#if defined(CONFIG_RAMLOG_SYSLOG) && !defined(CONFIG_NSH_DISABLE_DMESG)
+#if defined(CONFIG_SYSLOG_DEVPATH) && !defined(CONFIG_NSH_DISABLE_DMESG)
int cmd_dmesg(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
#endif
#if !defined(CONFIG_NSH_DISABLE_READLINK) && defined(CONFIG_PSEUDOFS_SOFTLINKS)
diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c
index 99af79b22..80d1b4a0b 100644
--- a/nshlib/nsh_command.c
+++ b/nshlib/nsh_command.c
@@ -183,7 +183,7 @@ static const struct cmdmap_s g_cmdmap[] =
#endif
#endif
-#if defined(CONFIG_RAMLOG_SYSLOG) && !defined(CONFIG_NSH_DISABLE_DMESG)
+#if defined(CONFIG_SYSLOG_DEVPATH) && !defined(CONFIG_NSH_DISABLE_DMESG)
{ "dmesg", cmd_dmesg, 1, 1, NULL },
#endif
diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c
index 4f1afff8f..f2461ac43 100644
--- a/nshlib/nsh_fscmds.c
+++ b/nshlib/nsh_fscmds.c
@@ -455,7 +455,7 @@ int cmd_cat(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
* Name: cmd_dmesg
****************************************************************************/
-#if defined(CONFIG_RAMLOG_SYSLOG) && !defined(CONFIG_NSH_DISABLE_DMESG)
+#if defined(CONFIG_SYSLOG_DEVPATH) && !defined(CONFIG_NSH_DISABLE_DMESG)
int cmd_dmesg(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
{
return nsh_catfile(vtbl, argv[0], CONFIG_SYSLOG_DEVPATH);