From patchwork Wed May 19 18:40:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3] Rename DEBUG macro to MSIX_LOG to avoid name clashes From: Riccardo Magliocchetti X-Patchwork-Id: 53008 Message-Id: To: qemu-devel@nongnu.org Cc: Riccardo Magliocchetti , "Michael S . Tsirkin" 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 --- 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 */