Message ID | CA+KKJYAdwLrCGKxrurARb5M1DQgHiEUFq587Enes8D5HFhvkxA@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/kvm-all.c b/kvm-all.c index 90b8573..47940b5 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -50,16 +50,16 @@ */ #define PAGE_SIZE getpagesize() -//#define DEBUG_KVM - -#ifdef DEBUG_KVM -#define DPRINTF(fmt, ...) \ - do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0) -#else -#define DPRINTF(fmt, ...) \ - do { } while (0) +#ifndef DEBUG_KVM +#define DEBUG_KVM 0 #endif +#define DPRINTF(fmt, ...) do { \ + if (DEBUG_KVM) { \ + fprintf(stderr, fmt, ## __VA_ARGS__); \ + } \ +} while (0); + #define KVM_MSI_HASHTAB_SIZE 256 struct KVMParkedVcpu {