1 #ifndef QEMU_GUI_DEBUG_H
2 #define QEMU_GUI_DEBUG_H
7 #define DEBUG_MOUSE_FLAG
8 #define DEBUG_KEYBBOARD_FLAG
10 #define DEBUG_PAINT_FLAG
13 #define DEBUG(format,args...) \
14 fprintf(stderr,format"\n",## args)
16 #define DEBUG_SECTION(title,format,args...) \
17 fprintf(stderr,title": "format"\n",## args)
19 #ifdef DEBUG_MOUSE_FLAG
20 #define DEBUG_MOUSE(format,args...) \
21 DEBUG_SECTION("mouse",format,## args)
23 #define DEBUG_MOUSE(format,args...) \
27 #ifdef DEBUG_KEYBOARD_FLAG
28 #define DEBUG_KEYBOARD(format,args...) \
29 DEBUG_SECTION("keyboard",format,## args)
31 #define DEBUG_KEYBOARD(format,args...) \
36 #define DEBUG_VNC(format,args...) \
37 DEBUG_SECTION("vnc",format,## args)
39 #define DEBUG_VNC(format,args...) \
43 #ifdef DEBUG_PAINT_FLAG
44 #define DEBUG_PAINT(format,args...) \
45 DEBUG_SECTION("paint",format,## args)
47 #define DEBUG_PAINT(format,args...) \