From df07cccccc3192dac203b47a24247df6d4b52950 Mon Sep 17 00:00:00 2001 From: chenyong Date: Mon, 11 Nov 2019 10:36:49 +0800 Subject: [PATCH] [components][finsh] fix compile error when the symbol table feature closed --- components/finsh/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);