+ DEBUG_CODE (\r
+ EFI_DEVICE_PATH *LoadFilePath;\r
+ CHAR16 *LoadFileText;\r
+ CHAR16 *FileText;\r
+\r
+ LoadFilePath = DevicePathFromHandle (LoadFileHandle);\r
+ if (LoadFilePath == NULL) {\r
+ LoadFileText = NULL;\r
+ } else {\r
+ LoadFileText = ConvertDevicePathToText (LoadFilePath, FALSE, FALSE);\r
+ }\r
+ FileText = ConvertDevicePathToText (FilePath, FALSE, FALSE);\r
+\r
+ DEBUG ((\r
+ DEBUG_ERROR,\r
+ "%a:%a: failed to allocate reserved pages: "\r
+ "BufferSize=%Lu LoadFile=\"%s\" FilePath=\"%s\"\n",\r
+ gEfiCallerBaseName,\r
+ __FUNCTION__,\r
+ (UINT64)BufferSize,\r
+ LoadFileText,\r
+ FileText\r
+ ));\r
+\r
+ if (FileText != NULL) {\r
+ FreePool (FileText);\r
+ }\r
+ if (LoadFileText != NULL) {\r
+ FreePool (LoadFileText);\r
+ }\r
+ );\r