mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 10:02:42 +03:00
[efi] Use efi_handle_name() instead of efi_devpath_text() where applicable
Using efi_devpath_text() is marginally more efficient if we already have the device path protocol available, but the mild increase in efficiency is not worth compromising the clarity of the pattern: DBGC ( device, "THING %p %s ...", device, efi_handle_name ( device ) ); Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1045,7 +1045,7 @@ static int efi_snp_probe ( struct net_device *netdev ) {
|
||||
if ( ( rc = efidev_child_add ( efidev, snpdev->handle ) ) != 0 ) {
|
||||
DBGC ( snpdev, "SNPDEV %p could not become child of %p %s: "
|
||||
"%s\n", snpdev, efidev->device,
|
||||
efi_devpath_text ( efidev->path ), strerror ( rc ) );
|
||||
efi_handle_name ( efidev->device ), strerror ( rc ) );
|
||||
goto err_efidev_child_add;
|
||||
}
|
||||
|
||||
@@ -1064,7 +1064,7 @@ static int efi_snp_probe ( struct net_device *netdev ) {
|
||||
|
||||
DBGC ( snpdev, "SNPDEV %p installed for %s as device %p %s\n",
|
||||
snpdev, netdev->name, snpdev->handle,
|
||||
efi_devpath_text ( &snpdev->path ) );
|
||||
efi_handle_name ( snpdev->handle ) );
|
||||
return 0;
|
||||
|
||||
if ( snpdev->package_list )
|
||||
|
||||
Reference in New Issue
Block a user