From: Simon Glass Date: Sun, 10 Nov 2013 17:26:58 +0000 (-0700) Subject: sandbox: Correct help message garbling X-Git-Tag: v2014.01-rc3~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6ebcab8de7c38ca0b2cc5215c5b3e7ccf5f9d0d7;p=u-boot sandbox: Correct help message garbling The is displayed for options with no argument, and omitted for those with an argument. Swap this around. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 1b15454784..951ac63f3a 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -50,9 +50,9 @@ int sandbox_early_getopt_check(void) /* then the long flag */ if (opt->has_arg) - printf("--%-*s", max_noarg_len, opt->flag); - else printf("--%-*s ", max_arg_len, opt->flag); + else + printf("--%-*s", max_noarg_len, opt->flag); /* finally the help text */ printf(" %s\n", opt->help);