Some files use DEBUG as a preprocessor conditionals to enable debug code and i find handy to pass -DDEBUG as extra cflags at configure time. Unfortunately this cannot be done if DEBUG name is used for other purposes.
Signed-off-by: Riccardo Magliocchetti <riccardo.magliocche...@gmail.com> --- hw/msix.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/msix.c b/hw/msix.c index 2ca0900..36ef098 100644 --- a/hw/msix.c +++ b/hw/msix.c @@ -51,12 +51,12 @@ #ifdef MSIX_DEBUG -#define DEBUG(fmt, ...) \ +#define MSIX_LOG(fmt, ...) \ do { \ fprintf(stderr, "%s: " fmt, __func__ , __VA_ARGS__); \ } while (0) #else -#define DEBUG(fmt, ...) do { } while(0) +#define MSIX_LOG(fmt, ...) do { } while(0) #endif /* Flag for interrupt controller to declare MSI-X support */ -- 1.7.1