From: Heinrich Schuchardt <xypron.glpk@gmx.de>
Date: Mon, 2 Mar 2020 19:13:10 +0000 (+0100)
Subject: cmd: efidebug: correct error message
X-Git-Tag: v2025.01-rc5-pxa1908~2525^2~3
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=30efb5dd43fdeb6173c61a55b537fcfba2c45f3f;p=u-boot.git

cmd: efidebug: correct error message

Add the missing line feed at the error message if the variable referred to
by 'efidebug boot rm' does not exist.

Shorten the format string by using the variable name instead of the number
of the boot variable.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---

diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index 056ebb1083..8c3681c37d 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -667,7 +667,7 @@ static int do_efi_boot_rm(cmd_tbl_t *cmdtp, int flag,
 
 		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;
 		}
 	}