Remove deadlock message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>

---
 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/  |

_______________________________________________
u-boot-v2 mailing list
u-boot-v2@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/u-boot-v2

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux