From: Markus Armbruster Date: Tue, 15 Mar 2016 18:34:27 +0000 (+0100) Subject: ivshmem: Compile debug prints unconditionally to prevent bit-rot X-Git-Tag: TizenStudio_2.0_p2.4~27^2~6^2~8^2~96^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4fa93bf20a4be3377df6ac9c9d63cccc31ab68c;p=sdk%2Femulator%2Fqemu.git ivshmem: Compile debug prints unconditionally to prevent bit-rot Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau Message-Id: <1458066895-20632-13-git-send-email-armbru@redhat.com> --- diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 11cbc03..6ac8c0d 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -48,13 +48,13 @@ #define IVSHMEM_REG_BAR_SIZE 0x100 -//#define DEBUG_IVSHMEM -#ifdef DEBUG_IVSHMEM -#define IVSHMEM_DPRINTF(fmt, ...) \ - do {printf("IVSHMEM: " fmt, ## __VA_ARGS__); } while (0) -#else -#define IVSHMEM_DPRINTF(fmt, ...) -#endif +#define IVSHMEM_DEBUG 0 +#define IVSHMEM_DPRINTF(fmt, ...) \ + do { \ + if (IVSHMEM_DEBUG) { \ + printf("IVSHMEM: " fmt, ## __VA_ARGS__); \ + } \ + } while (0) #define TYPE_IVSHMEM "ivshmem" #define IVSHMEM(obj) \