* [U-Boot] [PATCH] cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments
@ 2016-08-12 8:31 Bin Meng
2016-08-12 10:18 ` Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: Bin Meng @ 2016-08-12 8:31 UTC (permalink / raw)
To: u-boot
When typing 'bootefi' from U-Boot shell, nothing outputs. Like other
commands, return CMD_RET_USAGE so that it can print help message.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---
cmd/bootefi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index ecf9968..ccd2126 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -228,7 +228,7 @@ static int do_bootefi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int r = 0;
if (argc < 2)
- return 1;
+ return CMD_RET_USAGE;
#ifdef CONFIG_CMD_BOOTEFI_HELLO
if (!strcmp(argv[1], "hello")) {
addr = CONFIG_SYS_LOAD_ADDR;
--
2.9.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments
2016-08-12 8:31 [U-Boot] [PATCH] cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments Bin Meng
@ 2016-08-12 10:18 ` Alexander Graf
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2016-08-12 10:18 UTC (permalink / raw)
To: u-boot
On 08/12/2016 10:31 AM, Bin Meng wrote:
> When typing 'bootefi' from U-Boot shell, nothing outputs. Like other
> commands, return CMD_RET_USAGE so that it can print help message.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-12 10:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-12 8:31 [U-Boot] [PATCH] cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments Bin Meng
2016-08-12 10:18 ` Alexander Graf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.