diff --git a/Source/Boot/EFI/Libs.h b/Source/Boot/EFI/Libs.h index 0213c53..4d8d5d9 100644 --- a/Source/Boot/EFI/Libs.h +++ b/Source/Boot/EFI/Libs.h @@ -9,22 +9,22 @@ void PrintInt(UINT64 number); #define WIDEN(x) L##x -#define EFI_CALL(function) \ - do \ - { \ - EFI_STATUS status = function; \ - if (EFI_ERROR(status)) \ - { \ - SetColor(EFI_RED); \ - Print(L"Error during \""); \ - Print(WIDEN(#function)); \ - Print(L"\" ("); \ - Print(GetErrorString(status)); \ - Print(L", "); \ - PrintInt(status); \ - Print(L")"); \ - ResetColor(); \ - } \ +#define EFI_CALL(function) \ + do \ + { \ + EFI_STATUS status = function; \ + if (EFI_ERROR(status)) \ + { \ + SetColor(EFI_RED); \ + Print(L"The following error occured while executing \""); \ + Print(WIDEN(#function)); \ + Print(L"\": \""); \ + Print(GetErrorString(status)); \ + Print(L"\" ("); \ + PrintInt(status); \ + Print(L")"); \ + ResetColor(); \ + } \ } while (0) #define ALLOC(buffer, size) \