Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170618964
D9422.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9422.diff
View Options
Index: head/sys/boot/efi/libefi/Makefile
===================================================================
--- head/sys/boot/efi/libefi/Makefile
+++ head/sys/boot/efi/libefi/Makefile
@@ -26,6 +26,7 @@
# of a short. There's no good cast to use here so just ignore the
# warnings for now.
CWARNFLAGS.efinet.c+= -Wno-format
+CWARNFLAGS.env.c+= -Wno-format
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -msoft-float -mgeneral-regs-only
Index: head/sys/boot/efi/libefi/env.c
===================================================================
--- head/sys/boot/efi/libefi/env.c
+++ head/sys/boot/efi/libefi/env.c
@@ -94,14 +94,16 @@
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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 6, 4:22 PM (5 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38406777
Default Alt Text
D9422.diff (1 KB)
Attached To
Mode
D9422: loader: libefi/env.c warnings in arm build
Attached
Detach File
Event Timeline
Log In to Comment