Skip to content

Commit

Permalink
ivshmem: Compile debug prints unconditionally to prevent bit-rot
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1458066895-20632-13-git-send-email-armbru@redhat.com>
  • Loading branch information
Markus Armbruster committed Mar 21, 2016
1 parent 9755397 commit a4fa93b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hw/misc/ivshmem.c
Expand Up @@ -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) \
Expand Down

0 comments on commit a4fa93b

Please sign in to comment.