summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-11-11 16:15:47 +0800
committerGitHub <[email protected]>2019-11-11 16:15:47 +0800
commit35e035b8b130eaa12a6dee494828a4404f07731e (patch)
tree566adb9e467bf43fe9d711ac59b8219121f06ba1 /components
parentcc2316ed4e7ac8ce9d2ecf8ca53585d9b838b973 (diff)
parentdf07cccccc3192dac203b47a24247df6d4b52950 (diff)
Merge pull request #3191 from Lawlieta/develop
[components][finsh] fix compile error when the symbol table feature closed
Diffstat (limited to 'components')
-rw-r--r--components/finsh/cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index 53b8755af1..48a629961b 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -887,7 +887,7 @@ long list(void)
/* skip the internal command */
if (strncmp((char *)index->name, "__", 2) == 0) continue;
-#ifdef FINSH_USING_DESCRIPTION
+#if defined(FINSH_USING_DESCRIPTION) && defined(FINSH_USING_SYMTAB)
rt_kprintf("%-16s -- %s\n", index->name, index->desc);
#else
rt_kprintf("%s\n", index->name);