aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
Diffstat (limited to 'com32')
-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 */