diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-08-27 10:08:00 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-08-27 15:40:44 +0100 |
commit | 9501eaf68d79a7baa2d71567481ccb0f43e56253 (patch) | |
tree | 5cf2705ee089b65dfc93b9a4f5f5c3bf3a10cf65 /src/interface/efi/efi_snp.c | |
parent | 0e407377dde26c5915d6df17397566244bb9d412 (diff) | |
download | ipxe-9501eaf68d79a7baa2d71567481ccb0f43e56253.tar.gz |
[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>
Diffstat (limited to 'src/interface/efi/efi_snp.c')
-rw-r--r-- | src/interface/efi/efi_snp.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/interface/efi/efi_snp.c b/src/interface/efi/efi_snp.c index 3dfcc5e16..c2604580f 100644 --- a/src/interface/efi/efi_snp.c +++ b/src/interface/efi/efi_snp.c @@ -1024,9 +1024,9 @@ static int efi_snp_probe ( struct net_device *netdev ) { efidev->device, EFI_OPEN_PROTOCOL_GET_PROTOCOL ))!=0){ rc = -EEFI ( efirc ); - DBGC ( snpdev, "SNPDEV %p cannot get %p %s device path: %s\n", - snpdev, efidev->device, - efi_handle_name ( efidev->device ), strerror ( rc ) ); + DBGC ( snpdev, "SNPDEV %p cannot get %s device path: %s\n", + snpdev, efi_handle_name ( efidev->device ), + strerror ( rc ) ); goto err_open_device_path; } @@ -1067,16 +1067,16 @@ static int efi_snp_probe ( struct net_device *netdev ) { &efi_load_file_protocol_guid, &snpdev->load_file, NULL ) ) != 0 ) { rc = -EEFI ( efirc ); - DBGC ( snpdev, "SNPDEV %p could not install protocols: " - "%s\n", snpdev, strerror ( rc ) ); + DBGC ( snpdev, "SNPDEV %p could not install protocols: %s\n", + snpdev, strerror ( rc ) ); goto err_install_protocol_interface; } /* Add as child of EFI parent device */ if ( ( rc = efi_child_add ( efidev->device, snpdev->handle ) ) != 0 ) { - DBGC ( snpdev, "SNPDEV %p could not become child of %p %s: " - "%s\n", snpdev, efidev->device, - efi_handle_name ( efidev->device ), strerror ( rc ) ); + DBGC ( snpdev, "SNPDEV %p could not become child of %s: %s\n", + snpdev, efi_handle_name ( efidev->device ), + strerror ( rc ) ); goto err_efi_child_add; } @@ -1097,9 +1097,8 @@ static int efi_snp_probe ( struct net_device *netdev ) { bs->CloseProtocol ( efidev->device, &efi_device_path_protocol_guid, efi_image_handle, efidev->device ); - DBGC ( snpdev, "SNPDEV %p installed for %s as device %p %s\n", - snpdev, netdev->name, snpdev->handle, - efi_handle_name ( snpdev->handle ) ); + DBGC ( snpdev, "SNPDEV %p installed for %s as device %s\n", + snpdev, netdev->name, efi_handle_name ( snpdev->handle ) ); return 0; if ( snpdev->package_list ) |