From 2985d3f42b638caed8e9dabc7a0ad67590bf47c8 Mon Sep 17 00:00:00 2001 From: Eunbong Song Date: Tue, 18 Sep 2018 07:24:24 -0600 Subject: [PATCH] apps/nshlib: Correct maximum number of arguments that can be provided to the mksmartfs command. --- nshlib/nsh_command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c index 6c8115259..632ccd302 100644 --- a/nshlib/nsh_command.c +++ b/nshlib/nsh_command.c @@ -326,9 +326,9 @@ static const struct cmdmap_s g_cmdmap[] = defined(CONFIG_FS_SMARTFS) && defined(CONFIG_FSUTILS_MKSMARTFS) # ifndef CONFIG_NSH_DISABLE_MKSMARTFS # ifdef CONFIG_SMARTFS_MULTI_ROOT_DIRS - { "mksmartfs", cmd_mksmartfs, 2, 5, "[-s sector-size] []" }, + { "mksmartfs", cmd_mksmartfs, 2, 6, "[-s ] [-f] []" }, # else - { "mksmartfs", cmd_mksmartfs, 2, 4, "[-s sector-size] " }, + { "mksmartfs", cmd_mksmartfs, 2, 5, "[-s ] [-f] " }, # endif # endif #endif