diff options
author | Chandramouli Narayanan <chandramouli.narayanan@intel.com> | 2012-09-01 07:10:46 -0700 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-09-04 18:49:39 +0100 |
commit | d1e4387577da5a5bc291a112aa51da6f8f1869cc (patch) | |
tree | 9ea0e7deca3993a2afbece979c5344ceaaf34f01 /com32/include/dprintf.h | |
parent | 9415cfeb0a3d641eea9c6b877278e1acbc4ee830 (diff) | |
download | syslinux-d1e4387577da5a5bc291a112aa51da6f8f1869cc.tar.gz |
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 <chandramouli.narayanan@intel.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/include/dprintf.h')
-rw-r--r-- | com32/include/dprintf.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 <stdio.h> @@ -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 |