From d3a669faed37ab8c1b45080c4597ca9fb5b47d1b Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Thu, 7 Jan 2021 23:54:33 -0700 Subject: [PATCH] input: Fixup includes and DPRINTF --- ui/xemu-input.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/ui/xemu-input.c b/ui/xemu-input.c index d9690e5529..e2c9881f56 100644 --- a/ui/xemu-input.c +++ b/ui/xemu-input.c @@ -17,9 +17,6 @@ * along with this program. If not, see . */ -#include "xemu-input.h" -#include "xemu-notifications.h" -#include "xemu-settings.h" #include "qemu/osdep.h" #include "qemu-common.h" @@ -31,10 +28,18 @@ #include "qemu/option.h" #include "qemu/config-file.h" -#if 0 -#define DPRINTF printf +#include "xemu-input.h" +#include "xemu-notifications.h" +#include "xemu-settings.h" + +// #define DEBUG_INPUT + +#ifdef DEBUG_INPUT +#define DPRINTF(fmt, ...) \ + do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0) #else -#define DPRINTF(...) +#define DPRINTF(fmt, ...) \ + do { } while (0) #endif int num_available_controllers;