mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] efi: payload: iomem: add commented out #define DEBUG 1
@ 2023-05-23  9:40 Ahmad Fatoum
  2023-05-23  9:40 ` [PATCH 2/2] block: efi: " Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2023-05-23  9:40 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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@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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-31  7:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23  9:40 [PATCH 1/2] efi: payload: iomem: add commented out #define DEBUG 1 Ahmad Fatoum
2023-05-23  9:40 ` [PATCH 2/2] block: efi: " Ahmad Fatoum
2023-05-30 12:31 ` [PATCH 1/2] efi: payload: iomem: " Sascha Hauer
2023-05-30 12:38 ` Sascha Hauer
2023-05-30 15:38   ` Masahiro Yamada
2023-05-31  7:27     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox