aboutsummaryrefslogtreecommitdiff
path: root/cmd/efidebug.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-03-12 12:51:44 -0400
committerTom Rini <trini@konsulko.com>2020-03-12 12:51:44 -0400
commitdb3b1818b7a9711084255713ec14cb886eb79b12 (patch)
tree01fc163d773a4b4b2e53a432fd5b1f9839e8e360 /cmd/efidebug.c
parent6e3cd0a3845cbba7e49f48b2ec326564986bfb9b (diff)
parentbc40eb278b0c14b990556eab34a57b2b8ed598f4 (diff)
Merge tag 'efi-2020-04-rc4-3' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-04-rc4 (3) This pull request provides the hardware RNG driver for Amlogic systems needed for the EFI_RNG_PROTOCOL. Furthermore bug fixes are provided: * correct an error message in the efidebug command * correct an error in the 'efidebug rm' command * remove an unnecessary assignment in efi_queue_event()
Diffstat (limited to 'cmd/efidebug.c')
-rw-r--r--cmd/efidebug.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index 21dfd44fcc..8c3681c37d 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -649,7 +649,7 @@ static int do_efi_boot_rm(cmd_tbl_t *cmdtp, int flag,
int id, i;
char *endp;
char var_name[9];
- u16 var_name16[9];
+ u16 var_name16[9], *p;
efi_status_t ret;
if (argc == 1)
@@ -662,11 +662,12 @@ static int do_efi_boot_rm(cmd_tbl_t *cmdtp, int flag,
return CMD_RET_FAILURE;
sprintf(var_name, "Boot%04X", id);
- utf8_utf16_strncpy((u16 **)&var_name16, var_name, 9);
+ p = var_name16;
+ utf8_utf16_strncpy(&p, var_name, 9);
ret = EFI_CALL(RT->set_variable(var_name16, &guid, 0, 0, NULL));
if (ret) {
- printf("Cannot remove Boot%04X", id);
+ printf("Cannot remove %ls\n", var_name16);
return CMD_RET_FAILURE;
}
}