aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2013-08-16 12:54:39 -0400
committerGene Cumm <gene.cumm@gmail.com>2013-09-23 17:25:32 -0400
commitcfc678be72a9d93c6d7511d585cfcfd75e63bb11 (patch)
tree8bebddc19cf1b71410303aa100f4342802b62acb
parent960501d081bcde85648ebe24466dba35b239d95e (diff)
downloadsyslinux-cfc678be72a9d93c6d7511d585cfcfd75e63bb11.tar.gz
syslinux-cfc678be72a9d93c6d7511d585cfcfd75e63bb11.tar.xz
syslinux-cfc678be72a9d93c6d7511d585cfcfd75e63bb11.zip
com32: Define ddprintf() macro
Duplicating Debug Printf; Certain warning/error printf() statements are not visible if they occur before ldlinux.c32 is loaded Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--com32/include/dprintf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/include/dprintf.h b/com32/include/dprintf.h
index 51d5c61d..1b539698 100644
--- a/com32/include/dprintf.h
+++ b/com32/include/dprintf.h
@@ -18,9 +18,11 @@
# ifdef DEBUG_STDIO
# define dprintf printf
# define vdprintf vprintf
+# define ddprintf dprintf
# else
void dprintf(const char *, ...);
void vdprintf(const char *, va_list);
+# define ddprintf(...) { printf(__VA_ARGS__); dprintf(__VA_ARGS__); }
# endif
#else
@@ -31,6 +33,7 @@ void vdprintf(const char *, va_list);
#define vdprintf(fmt, ap) \
if (syslinux_debug_enabled) \
vprintf(fmt, ap)
+#define ddprintf printf
#endif /* DEBUG */