diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-07-31 11:21:09 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-07-31 11:57:31 +0100 |
commit | 60891f699ae268ef6ca425013b2427769a5f5fc2 (patch) | |
tree | b00bc550ae61776a71a7c502d63dbd379b66a0ac /src/interface/efi/efi_snp.c | |
parent | 2e0821b9edc354387687d7c01e18616964ceaeda (diff) | |
download | ipxe-60891f699ae268ef6ca425013b2427769a5f5fc2.tar.gz |
[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>
Diffstat (limited to 'src/interface/efi/efi_snp.c')
-rw-r--r-- | src/interface/efi/efi_snp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) |