diff options
author | Simon Glass <sjg@chromium.org> | 2013-11-10 10:26:58 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-01-08 17:24:23 -0700 |
commit | 6ebcab8de7c38ca0b2cc5215c5b3e7ccf5f9d0d7 (patch) | |
tree | 0213a721eb1af1f5042fccd19e2899a9bb4da6e4 /arch/sandbox | |
parent | 77595c6d9e2c1af9c3b143f496c4c47d0e95a458 (diff) | |
download | u-boot-imx-6ebcab8de7c38ca0b2cc5215c5b3e7ccf5f9d0d7.zip u-boot-imx-6ebcab8de7c38ca0b2cc5215c5b3e7ccf5f9d0d7.tar.gz u-boot-imx-6ebcab8de7c38ca0b2cc5215c5b3e7ccf5f9d0d7.tar.bz2 |
sandbox: Correct help message <arg> garbling
The <arg> is displayed for options with no argument, and omitted for those
with an argument. Swap this around.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/cpu/start.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 1b15454..951ac63 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 <arg> ", max_arg_len, opt->flag); + else + printf("--%-*s", max_noarg_len, opt->flag); /* finally the help text */ printf(" %s\n", opt->help); |