[syslinux:master] lib/shuffle: use <dprintf.h>
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Mon Jun 20 21:21:11 PDT 2011
Commit-ID: 32e07d531c691974c6c0517368bde2079d4d3d8f
Gitweb: http://syslinux.zytor.com/commit/32e07d531c691974c6c0517368bde2079d4d3d8f
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 20 Jun 2011 21:19:46 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 20 Jun 2011 21:19:46 -0700
lib/shuffle: use <dprintf.h>
Another straggler not yet using <dprintf.h> for debugging.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
com32/lib/syslinux/shuffle.c | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
diff --git a/com32/lib/syslinux/shuffle.c b/com32/lib/syslinux/shuffle.c
index 54a7e65..e9ee6aa 100644
--- a/com32/lib/syslinux/shuffle.c
+++ b/com32/lib/syslinux/shuffle.c
@@ -39,26 +39,10 @@
#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;
};
More information about the Syslinux-commits
mailing list