Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
qemu-testsuite
2005-ipxe-efi-Simplify-diagnostic-for-NU.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2005-ipxe-efi-Simplify-diagnostic-for-NU.patch of Package qemu-testsuite
From: Bruce Rogers <brogers@suse.com> Date: Fri, 25 Jan 2019 09:37:44 -0700 Subject: ipxe: efi: Simplify diagnostic for NULL handle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiling with GCC 9 now warns as follows: interface/efi/efi_debug.c:334:3: error: ā%sā directive argument is null [-Werror=format-overflow=] 334 | printf ( "HANDLE %s could not retrieve protocols\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 335 | efi_handle_name ( handle ) ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Simplify this diagnostic by simply indicating a <NULL> has been passed as a handle. [BR: BSC#1121464] Signed-off-by: Bruce Rogers <brogers@suse.com> --- src/interface/efi/efi_debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roms/ipxe/src/interface/efi/efi_debug.c b/roms/ipxe/src/interface/efi/efi_debug.c index 8ea0a822d044caca088c64ca2407..19fba76763374bf13e3cd3e17b88 100644 --- a/roms/ipxe/src/interface/efi/efi_debug.c +++ b/roms/ipxe/src/interface/efi/efi_debug.c @@ -331,8 +331,7 @@ void dbg_efi_protocols ( EFI_HANDLE handle ) { /* Sanity check */ if ( ! handle ) { - printf ( "HANDLE %s could not retrieve protocols\n", - efi_handle_name ( handle ) ); + printf ( "HANDLE <NULL> could not retrieve protocols\n" ); return; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor