Remove deadlock message

Sascha Hauer s.hauer at pengutronix.de
Thu Nov 19 03:43:53 EST 2009


On Wed, Nov 18, 2009 at 03:58:58PM +0100, Juergen Beisert wrote:
> 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>

Applied

Sascha

> 
> ---
>  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 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/u-boot-v2
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list