aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/libefi/devpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/efi/libefi/devpath.c')
-rw-r--r--stand/efi/libefi/devpath.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/stand/efi/libefi/devpath.c b/stand/efi/libefi/devpath.c
index db152f8eb9ad..c9928733b5f9 100644
--- a/stand/efi/libefi/devpath.c
+++ b/stand/efi/libefi/devpath.c
@@ -28,6 +28,8 @@
#include <efichar.h>
#include <uuid.h>
#include <machine/_inttypes.h>
+#include <Protocol/DevicePathToText.h>
+#include <Protocol/DevicePathFromText.h>
static EFI_GUID ImageDevicePathGUID =
EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL_GUID;
@@ -71,7 +73,7 @@ efi_close_devpath(EFI_HANDLE handle)
status = BS->CloseProtocol(handle, &DevicePathGUID, IH, NULL);
if (EFI_ERROR(status))
- printf("CloseProtocol error: %lu\n", EFI_ERROR_CODE(status));
+ printf("CloseProtocol error: %lu\n", DECODE_ERROR(status));
}
static char *
@@ -165,7 +167,7 @@ efi_hw_dev_path(EFI_DEVICE_PATH *node, char *suffix)
break;
case HW_CONTROLLER_DP:
if (asprintf(&name, "Ctrl(%x)%s",
- ((CONTROLLER_DEVICE_PATH *)node)->Controller, tail) < 0)
+ ((CONTROLLER_DEVICE_PATH *)node)->ControllerNumber, tail) < 0)
name = NULL;
break;
default: