mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-16 12:11:32 +00:00
efi_loader: error handling for efidebug boot add
In `efidebug boot add iPXE scsi 0:1 snp-arm64.efi --foo` a parameter is missing. Hence the command should not silently return as if everything were ok but should display the usage info. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Alexander Graf <agraf@csgraf.de>
This commit is contained in:
parent
fdef298338
commit
1fa442ed43
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ static int do_efi_boot_add(cmd_tbl_t *cmdtp, int flag,
|
|||
|
||||
id = (int)simple_strtoul(argv[1], &endp, 16);
|
||||
if (*endp != '\0' || id > 0xffff)
|
||||
return CMD_RET_FAILURE;
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
sprintf(var_name, "Boot%04X", id);
|
||||
p = var_name16;
|
||||
|
|
Loading…
Add table
Reference in a new issue