From 26bbd3b34e615619b03d669d68b319993d2d42fe Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 1 Jul 2010 18:04:13 -0700 Subject: [PATCH] com32: canonicalize DEBUG to mean Remove historical uses of DEBUG/dprintf in favor of the centralized . Signed-off-by: H. Peter Anvin --- com32/hdt/hdt-cli.h | 8 +------- com32/modules/elf.c | 8 +------- com32/modules/pmload.c | 8 +------- com32/modules/sdi.c | 8 +------- 4 files changed, 4 insertions(+), 28 deletions(-) diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index d9632b2..98246b4 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -30,16 +30,10 @@ #define DEFINE_HDT_CLI_H #include #include +#include #include "hdt-common.h" -#define DEBUG 0 -#if DEBUG -# define dprintf printf -#else -# define dprintf(f, ...) ((void)0) -#endif - #define MAX_LINE_SIZE 256 #define CLI_SPACE " " diff --git a/com32/modules/elf.c b/com32/modules/elf.c index d53d936..182afa6 100644 --- a/com32/modules/elf.c +++ b/com32/modules/elf.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -50,13 +51,6 @@ /* If we don't have this much memory for the stack, signal failure */ #define MIN_STACK 512 -#define DEBUG 0 -#if DEBUG -# define dprintf printf -#else -# define dprintf(f, ...) ((void)0) -#endif - static inline void error(const char *msg) { fputs(msg, stderr); diff --git a/com32/modules/pmload.c b/com32/modules/pmload.c index 7a0e193..3064a94 100644 --- a/com32/modules/pmload.c +++ b/com32/modules/pmload.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -52,13 +53,6 @@ /* If we don't have this much memory for the stack, signal failure */ #define MIN_STACK 512 -#define DEBUG 0 -#if DEBUG -# define dprintf printf -#else -# define dprintf(f, ...) ((void)0) -#endif - static inline void error(const char *msg) { fputs(msg, stderr); diff --git a/com32/modules/sdi.c b/com32/modules/sdi.c index fbca6a5..69841d2 100644 --- a/com32/modules/sdi.c +++ b/com32/modules/sdi.c @@ -28,18 +28,12 @@ #include #include #include +#include #include #include #include -#define DEBUG 0 -#if DEBUG -# define dprintf printf -#else -# define dprintf(f, ...) ((void)0) -#endif - typedef uint8_t guid_t[16]; struct SDIHeader { -- 2.7.4