diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 53b8755af1d106d2ca7ec42937c02afead7a22f3..48a629961bde8109369bc591f1efd59e884d328c 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);