summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2009-11-18 15:58:58 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-11-19 09:41:44 +0100
commitb00a6d357e04dc04b728bb58daeeafa1ee718d09 (patch)
treec5c881b824ed68394330d07639f496f601623311 /common
parentfc0bb9ea2d2f9aa88eb389d3217b85ddc7102dac (diff)
downloadbarebox-b00a6d357e04dc04b728bb58daeeafa1ee718d09.tar.gz
barebox-b00a6d357e04dc04b728bb58daeeafa1ee718d09.tar.xz
Remove deadlock message
Any wrong or unknown command will result into the output: Unknown command '<some text>' - try 'help' If the command 'help' is disabled, this will end up in: Unknown command 'help' - try 'help' which is for blondes. Suppress the "try 'help'" for the case the 'help' command is disabled. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c
index a46e07e352..d9907250a7 100644
--- a/common/command.c
+++ b/common/command.c
@@ -108,7 +108,11 @@ int execute_command(int argc, char **argv)
}
return ret;
} else {
+#ifdef CONFIG_CMD_HELP
printf ("Unknown command '%s' - try 'help'\n", argv[0]);
+#else
+ printf ("Unknown command '%s'\n", argv[0]);
+#endif
return -1; /* give up after bad command */
}
}