[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] Rename DEBUG macro to MSIX_LOG to avoid name cl
From: |
Riccardo Magliocchetti |
Subject: |
[Qemu-devel] [PATCH 2/3] Rename DEBUG macro to MSIX_LOG to avoid name clashes |
Date: |
Wed, 19 May 2010 20:40:19 +0200 |
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 <address@hidden>
---
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