aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-06-27 18:51:11 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-06-27 18:51:11 -0700
commit2eb008a6e3579f2b1d0d9f28a6ea681966f9c7d7 (patch)
treeb5fb705afbf28e7fbe2b6d3392dd133dfc6b5b7d /com32/modules
parentb61f33c5b80f3a957095717775da4908a1e5ada6 (diff)
downloadsyslinux-2eb008a6e3579f2b1d0d9f28a6ea681966f9c7d7.tar.gz
syslinux-2eb008a6e3579f2b1d0d9f28a6ea681966f9c7d7.tar.xz
syslinux-2eb008a6e3579f2b1d0d9f28a6ea681966f9c7d7.zip
Use <dprintf.h> instead of an ad hoc definition
Instead of using ad hoc definitions of dprintf, dprintf2, vdprintf and vdprintf2, use <dprintf.h> everywhere possible. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/modules')
-rw-r--r--com32/modules/ethersel.c7
-rw-r--r--com32/modules/pcitest.c7
2 files changed, 2 insertions, 12 deletions
diff --git a/com32/modules/ethersel.c b/com32/modules/ethersel.c
index 5c3cf02a..28dc62ca 100644
--- a/com32/modules/ethersel.c
+++ b/com32/modules/ethersel.c
@@ -38,12 +38,7 @@
#include <com32.h>
#include <syslinux/boot.h>
#include <syslinux/config.h>
-
-#ifdef DEBUG
-# define dprintf printf
-#else
-# define dprintf(...) ((void)0)
-#endif
+#include <dprintf.h>
#define MAX_LINE 512
diff --git a/com32/modules/pcitest.c b/com32/modules/pcitest.c
index 672023ad..9921ee6d 100644
--- a/com32/modules/pcitest.c
+++ b/com32/modules/pcitest.c
@@ -39,12 +39,7 @@
#include <com32.h>
#include <sys/pci.h>
#include <stdbool.h>
-
-#ifdef DEBUG
-# define dprintf printf
-#else
-# define dprintf(...) ((void)0)
-#endif
+#include <dprintf.h>
char display_line = 0;
#define moreprintf(...) \