summaryrefslogtreecommitdiff
path: root/sys/boot/efi/libefi/env.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-02-05 20:03:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-02-05 20:03:05 +0000
commitf9edb08480901b8c7d85837d72f8702008b0a773 (patch)
treec04feb833accf3797a2818bf289559ef157195a4 /sys/boot/efi/libefi/env.c
parent899ca3d65f2b5e1cdf4d563783c61ebcff0862cf (diff)
parent9ad221a558f813645e352036ee2445903d9a9b6f (diff)
Notes
Diffstat (limited to 'sys/boot/efi/libefi/env.c')
-rw-r--r--sys/boot/efi/libefi/env.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/efi/libefi/env.c b/sys/boot/efi/libefi/env.c
index 139b91a08660..ceec7b2a18f8 100644
--- a/sys/boot/efi/libefi/env.c
+++ b/sys/boot/efi/libefi/env.c
@@ -94,14 +94,16 @@ efi_print_var(CHAR16 *varnamearg, EFI_GUID *matchguid, int lflag)
status = RS->GetVariable(varnamearg, matchguid, &attr,
&datasz, NULL);
if (status != EFI_BUFFER_TOO_SMALL) {
- printf("Can't get the variable: error %#lx\n", status);
+ printf("Can't get the variable: error %#lx\n",
+ EFI_ERROR_CODE(status));
return (CMD_ERROR);
}
data = malloc(datasz);
status = RS->GetVariable(varnamearg, matchguid, &attr,
&datasz, data);
if (status != EFI_SUCCESS) {
- printf("Can't get the variable: error %#lx\n", status);
+ printf("Can't get the variable: error %#lx\n",
+ EFI_ERROR_CODE(status));
return (CMD_ERROR);
}
uuid_to_string((uuid_t *)matchguid, &str, &uuid_status);