aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface/efi/efi_debug.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2014-07-31 10:44:25 +0100
committerMichael Brown <mcb30@ipxe.org>2014-07-31 11:56:44 +0100
commit2e0821b9edc354387687d7c01e18616964ceaeda (patch)
tree7975ea34b0f82ed519363049e20738d97f02b129 /src/interface/efi/efi_debug.c
parent736fcf60d1db389941b4f15f94c31fe0403552a8 (diff)
downloadipxe-2e0821b9edc354387687d7c01e18616964ceaeda.tar.gz
[efi] Use efi_handle_name() instead of efi_handle_devpath_text()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_debug.c')
-rw-r--r--src/interface/efi/efi_debug.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/interface/efi/efi_debug.c b/src/interface/efi/efi_debug.c
index 21bb5fc6..1c865f82 100644
--- a/src/interface/efi/efi_debug.c
+++ b/src/interface/efi/efi_debug.c
@@ -550,37 +550,3 @@ const char * efi_handle_name ( EFI_HANDLE handle ) {
return "UNKNOWN";
}
-
-/**
- * Get textual representation of device path for a handle
- *
- * @v handle EFI handle
- * @ret text Textual representation of device path, or NULL
- */
-const char * efi_handle_devpath_text ( EFI_HANDLE handle ) {
- EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
- union {
- EFI_DEVICE_PATH_PROTOCOL *path;
- void *interface;
- } path;
- const char *text;
- EFI_STATUS efirc;
-
- /* Obtain device path, if any */
- if ( ( efirc = bs->OpenProtocol ( handle,
- &efi_device_path_protocol_guid,
- &path.interface, efi_image_handle,
- handle,
- EFI_OPEN_PROTOCOL_GET_PROTOCOL ))!=0){
- return NULL;
- }
-
- /* Format device path */
- text = efi_devpath_text ( path.path );
-
- /* Close device path */
- bs->CloseProtocol ( handle, &efi_device_path_protocol_guid,
- efi_image_handle, handle );
-
- return text;
-}