OcAppleBootPolicyLib: Add debug logging to blessed paths
@@ -230,6 +230,8 @@ InternalGetBooterFromBlessedSystemFilePath (
return EFI_NOT_FOUND;
}
+ DebugPrintHexDump (DEBUG_BULK_INFO, "BlessedFileHEX", (UINT8 *) *FilePath, FilePathSize);
+
if (!IsDevicePathValid (*FilePath, FilePathSize)) {
DEBUG ((DEBUG_BULK_INFO, "OCBP: Blessed file is invalid\n"));
FreePool (*FilePath);
@@ -237,6 +239,8 @@ InternalGetBooterFromBlessedSystemFilePath (
return EFI_NOT_FOUND;
}
+ DebugPrintDevicePath (DEBUG_BULK_INFO, "BlessedFileDP", *FilePath);
+
DEBUG ((DEBUG_BULK_INFO, "OCBP: Blessed file is valid\n"));
return EFI_SUCCESS;
@@ -273,12 +277,16 @@ InternalGetBooterFromBlessedSystemFolderPath (
return Status;
}
+ DebugPrintHexDump (DEBUG_BULK_INFO, "BlessedFolderHEX", (UINT8 *) DevicePath, DevicePathSize);
+
if (!IsDevicePathValid (DevicePath, DevicePathSize)) {
DEBUG ((DEBUG_BULK_INFO, "OCBP: Blessed folder is invalid\n"));
FreePool (DevicePath);
return EFI_NOT_FOUND;
}
+ DebugPrintDevicePath (DEBUG_BULK_INFO, "BlessedFolderDP", DevicePath);
+
DevicePathWalker = DevicePath;
while (!IsDevicePathEnd (DevicePathWalker)) {
