lib/shuffle: use <dprintf.h>
authorH. Peter Anvin <hpa@zytor.com>
Tue, 21 Jun 2011 04:19:46 +0000 (21:19 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 21 Jun 2011 04:19:46 +0000 (21:19 -0700)
Another straggler not yet using <dprintf.h> for debugging.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/syslinux/shuffle.c

index 54a7e65..e9ee6aa 100644 (file)
 #include <inttypes.h>
 #include <com32.h>
 #include <minmax.h>
+#include <dprintf.h>
 #include <syslinux/movebits.h>
 #include <klibc/compiler.h>
 
-#ifndef DEBUG
-# define DEBUG 0
-#endif
-
-#define dprintf(f, ...) ((void)0)
-#define dprintf2(f, ...) ((void)0)
-
-#if DEBUG
-# include <stdio.h>
-# undef dprintf
-# define dprintf printf
-# if DEBUG > 1
-#  undef dprintf2
-#  define dprintf2 printf
-# endif
-#endif
-
 struct shuffle_descriptor {
     uint32_t dst, src, len;
 };