Skip to contentSkip to conversation

cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments

PATCH New Bin Meng 2 participants 2 messages Aug 13, 2016 – Aug 21, 2016

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH v2 1/1 cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments

When typing 'bootefi' from U-Boot shell, nothing outputs. Like other commands, return CMD_RET_USAGE so that it can print help message.

---

Changes in v2:
- Rebase against origin/master instead of dm/uefi-working

 cmd/bootefi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/bootefi.c +1 -1
index b52ba9c..21fe42c 100644
@@ -226,7 +226,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;
 	saddr = argv[1];
 
 	addr = simple_strtoul(saddr, NULL, 16);
Signature · 1 line
2.9.2
#1 lore raw

PATCH v2 1/1 cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments

Quoted 5 lines · Bin Meng

When typing 'bootefi' from U-Boot shell, nothing outputs. Like other commands, return CMD_RET_USAGE so that it can print help message.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160821/f013ffe6/attachment.sig>