mirror of
https://github.com/ipxe/ipxe
synced 2026-04-04 03:00:20 +03:00
[efi] Remove raw EFI_HANDLE values from debug messages
The raw EFI_HANDLE value is almost never useful to know, and simply adds noise to the already verbose debug messages. Improve the legibility of debug messages by using only the name generated by efi_handle_name(). Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -48,8 +48,8 @@ static int snp_supported ( EFI_HANDLE device ) {
|
||||
|
||||
/* Check that this is not a device we are providing ourselves */
|
||||
if ( find_snpdev ( device ) != NULL ) {
|
||||
DBGCP ( device, "SNP %p %s is provided by this binary\n",
|
||||
device, efi_handle_name ( device ) );
|
||||
DBGCP ( device, "SNP %s is provided by this binary\n",
|
||||
efi_handle_name ( device ) );
|
||||
return -ENOTTY;
|
||||
}
|
||||
|
||||
@@ -58,12 +58,12 @@ static int snp_supported ( EFI_HANDLE device ) {
|
||||
&efi_simple_network_protocol_guid,
|
||||
NULL, efi_image_handle, device,
|
||||
EFI_OPEN_PROTOCOL_TEST_PROTOCOL))!=0){
|
||||
DBGCP ( device, "SNP %p %s is not an SNP device\n",
|
||||
device, efi_handle_name ( device ) );
|
||||
DBGCP ( device, "SNP %s is not an SNP device\n",
|
||||
efi_handle_name ( device ) );
|
||||
return -EEFI ( efirc );
|
||||
}
|
||||
DBGC ( device, "SNP %p %s is an SNP device\n",
|
||||
device, efi_handle_name ( device ) );
|
||||
DBGC ( device, "SNP %s is an SNP device\n",
|
||||
efi_handle_name ( device ) );
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -80,8 +80,8 @@ static int nii_supported ( EFI_HANDLE device ) {
|
||||
|
||||
/* Check that this is not a device we are providing ourselves */
|
||||
if ( find_snpdev ( device ) != NULL ) {
|
||||
DBGCP ( device, "NII %p %s is provided by this binary\n",
|
||||
device, efi_handle_name ( device ) );
|
||||
DBGCP ( device, "NII %s is provided by this binary\n",
|
||||
efi_handle_name ( device ) );
|
||||
return -ENOTTY;
|
||||
}
|
||||
|
||||
@@ -90,12 +90,12 @@ static int nii_supported ( EFI_HANDLE device ) {
|
||||
&efi_nii31_protocol_guid,
|
||||
NULL, efi_image_handle, device,
|
||||
EFI_OPEN_PROTOCOL_TEST_PROTOCOL))!=0){
|
||||
DBGCP ( device, "NII %p %s is not an NII device\n",
|
||||
device, efi_handle_name ( device ) );
|
||||
DBGCP ( device, "NII %s is not an NII device\n",
|
||||
efi_handle_name ( device ) );
|
||||
return -EEFI ( efirc );
|
||||
}
|
||||
DBGC ( device, "NII %p %s is an NII device\n",
|
||||
device, efi_handle_name ( device ) );
|
||||
DBGC ( device, "NII %s is an NII device\n",
|
||||
efi_handle_name ( device ) );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user