From d1e4387577da5a5bc291a112aa51da6f8f1869cc Mon Sep 17 00:00:00 2001 From: Chandramouli Narayanan Date: Sat, 1 Sep 2012 07:10:46 -0700 Subject: core: Rename DEBUG macro to avoid gnu-efi library conflict Use of DEBUG macro clases with gnu-efi library. This patch defines CORE_DEBUG. Appropriate changes to sources are made as a result. Also, the linker error on __bad_SEG is fixed. Signed-off-by: Chandramouli Narayanan Signed-off-by: Matt Fleming --- com32/include/dprintf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'com32/include/dprintf.h') diff --git a/com32/include/dprintf.h b/com32/include/dprintf.h index 26ca734b..de4625bc 100644 --- a/com32/include/dprintf.h +++ b/com32/include/dprintf.h @@ -6,10 +6,10 @@ #define _DPRINTF_H #if !defined(DEBUG_PORT) && !defined(DEBUG_STDIO) -# undef DEBUG +# undef CORE_DEBUG #endif -#ifdef DEBUG +#ifdef CORE_DEBUG # include @@ -26,9 +26,9 @@ void vdprintf(const char *, va_list); # define dprintf(fmt, ...) ((void)(0)) # define vdprintf(fmt, ap) ((void)(0)) -#endif /* DEBUG */ +#endif /* CORE_DEBUG */ -# if DEBUG >= 2 +# if CORE_DEBUG >= 2 /* Really verbose debugging... */ # define dprintf2 dprintf # define vdprintf2 vdprintf -- cgit v1.2.1