OpenCoreUefi: Fix printing UEFI drivers

This commit is contained in:
vit9696 2019-04-07 11:03:16 +03:00
parent 4443efd8e1
commit 2e2a41933e

View File

@ -42,8 +42,8 @@ LoadDrivers (
DEBUG ((
DEBUG_INFO,
"OC: Driver %a at %u is being loaded...\n",
Index,
OC_BLOB_GET (Config->Uefi.Drivers.Values[Index])
OC_BLOB_GET (Config->Uefi.Drivers.Values[Index]),
Index
));
UnicodeSPrint (
@ -58,8 +58,8 @@ LoadDrivers (
DEBUG ((
DEBUG_ERROR,
"OC: Driver %a at %u cannot be found!\n",
Index,
OC_BLOB_GET (Config->Uefi.Drivers.Values[Index])
OC_BLOB_GET (Config->Uefi.Drivers.Values[Index]),
Index
));
//
// TODO: This should cause security violation if configured!
@ -83,8 +83,8 @@ LoadDrivers (
DEBUG ((
DEBUG_ERROR,
"OC: Driver %a at %u cannot be loaded - %r!\n",
Index,
OC_BLOB_GET (Config->Uefi.Drivers.Values[Index]),
Index,
Status
));
FreePool (Driver);
@ -101,8 +101,8 @@ LoadDrivers (
DEBUG ((
DEBUG_ERROR,
"OC: Driver %a at %u cannot be started - %r!\n",
Index,
OC_BLOB_GET (Config->Uefi.Drivers.Values[Index]),
Index,
Status
));
gBS->UnloadImage (ImageHandle);