[PATCH 1/2] efi: payload: iomem: add commented out #define DEBUG 1

Ahmad Fatoum a.fatoum at pengutronix.de
Tue May 23 02:40:34 PDT 2023


The code uses __is_defined, which only works for undefined macros and
defined ones with a value. This is different than the debugging prints
that accept empty defined DEBUG, so add a commented out #define DEBUG 1
to alert those seeking to debug the code.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 common/efi/payload/iomem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/efi/payload/iomem.c b/common/efi/payload/iomem.c
index 6b92ca993aa7..550d832668ed 100644
--- a/common/efi/payload/iomem.c
+++ b/common/efi/payload/iomem.c
@@ -3,6 +3,7 @@
 
 #define pr_fmt(fmt) "efi-iomem: " fmt
 
+// #define DEBUG 1
 #include <common.h>
 #include <init.h>
 #include <efi.h>
-- 
2.39.2




More information about the barebox mailing list