From 6fd42d0030099c72b5987e3af566ee4e948166cd Mon Sep 17 00:00:00 2001 From: John Davis Date: Sat, 10 Jul 2021 10:53:48 -0500 Subject: [PATCH] OcAppleKernelLib: Fix incorrect debug print statements --- Library/OcMainLib/OpenCoreKernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/OcMainLib/OpenCoreKernel.c b/Library/OcMainLib/OpenCoreKernel.c index 96def1b6..59bc3306 100644 --- a/Library/OcMainLib/OpenCoreKernel.c +++ b/Library/OcMainLib/OpenCoreKernel.c @@ -1254,7 +1254,7 @@ OcKernelFileOpen ( && ((MaxCacheTypeAllowed == CacheTypeNone && mOcDarwinVersion <= KERNEL_VERSION_LEOPARD_MAX) || (MaxCacheTypeAllowed == CacheTypeMkext && mOcDarwinVersion <= KERNEL_VERSION_SNOW_LEOPARD_MAX) || (MaxCacheTypeAllowed == CacheTypeCacheless && mOcDarwinVersion <= KERNEL_VERSION_MAVERICKS_MAX))) { - DEBUG ((DEBUG_INFO, "OC: Blocking prelinked due to ForceKernelCache=%s: %a\n", FileName, ForceCacheType)); + DEBUG ((DEBUG_INFO, "OC: Blocking prelinked due to ForceKernelCache=%a: %s\n", ForceCacheType, FileName)); FreePool (Kernel); (*NewHandle)->Close (*NewHandle); @@ -1326,7 +1326,7 @@ OcKernelFileOpen ( // Disable mkext booting if forcing cacheless. // if (MaxCacheTypeAllowed == CacheTypeCacheless) { - DEBUG ((DEBUG_INFO, "OC: Blocking mkext due to ForceKernelCache=%s: %a\n", FileName, ForceCacheType)); + DEBUG ((DEBUG_INFO, "OC: Blocking mkext due to ForceKernelCache=%a: %s\n", ForceCacheType, FileName)); (*NewHandle)->Close (*NewHandle); *NewHandle = NULL;