Patchwork [2/3] Rename DEBUG macro to MSIX_LOG to avoid name clashes

login
register
mail settings
Submitter Riccardo Magliocchetti
Date May 19, 2010, 6:40 p.m.
Message ID <a57987566449ec288d608c41ceae9bcfc6cfa3b3.1274282444.git.riccardo.magliocchetti@gmail.com>
Download mbox | patch
Permalink /patch/53008/
State New
Headers show

Comments

Riccardo Magliocchetti - May 19, 2010, 6:40 p.m.
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.magliocchetti@gmail.com>
---
 hw/msix.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

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 */