Remove deadlock message
Juergen Beisert
jbe at pengutronix.de
Wed Nov 18 09:58:58 EST 2009
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 at pengutronix.de>
---
common/command.c | 4 ++++
1 file changed, 4 insertions(+)
Index: u-boot-v2/common/command.c
===================================================================
--- u-boot-v2.orig/common/command.c
+++ u-boot-v2/common/command.c
@@ -108,7 +108,11 @@ int execute_command(int argc, char **arg
}
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 */
}
}
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | Phone: +49-8766-939 228 |
Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |
More information about the barebox
mailing list