From 415d32dc2fbdeff0df79b83937a36e38e72bd6f2 Mon Sep 17 00:00:00 2001 From: Matthijs Lavrijsen Date: Mon, 27 Feb 2023 05:25:01 +0100 Subject: Macro sanitization --- EfiGuardDxe/EfiGuardDxe.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/EfiGuardDxe/EfiGuardDxe.h b/EfiGuardDxe/EfiGuardDxe.h index 4859953..0970d3b 100644 --- a/EfiGuardDxe/EfiGuardDxe.h +++ b/EfiGuardDxe/EfiGuardDxe.h @@ -213,10 +213,11 @@ extern KERNEL_PATCH_INFORMATION gKernelPatchInfo; // Appends a kernel patch status info or error message to the buffer for delayed printing, // and prints it to a boot debugger immediately if one is connected. // -#define PRINT_KERNEL_PATCH_MSG(Fmt, ...) { \ - gBlStatusPrint(Fmt, ##__VA_ARGS__); \ - AppendKernelPatchMessage(Fmt, ##__VA_ARGS__); \ - } +#define PRINT_KERNEL_PATCH_MSG(Fmt, ...) \ + do { \ + gBlStatusPrint(Fmt, ##__VA_ARGS__); \ + AppendKernelPatchMessage(Fmt, ##__VA_ARGS__); \ + } while (FALSE) #ifdef __cplusplus } -- cgit v1.2.3