From 60891f699ae268ef6ca425013b2427769a5f5fc2 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 31 Jul 2014 11:21:09 +0100 Subject: [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 --- src/interface/efi/efi_snp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/interface/efi/efi_snp.c') diff --git a/src/interface/efi/efi_snp.c b/src/interface/efi/efi_snp.c index d869c30f..dd64fd3b 100644 --- a/src/interface/efi/efi_snp.c +++ b/src/interface/efi/efi_snp.c @@ -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 ) -- cgit