]> git.proxmox.com Git - mirror_qemu.git/blame - slirp/debug.h
ui/console: Remove MouseTransformInfo from qemu/typedefs.h
[mirror_qemu.git] / slirp / debug.h
CommitLineData
f0cbd3ec
FB
1/*
2 * Copyright (c) 1995 Danny Gasparovski.
5fafdf24
TS
3 *
4 * Please read the file COPYRIGHT for the
f0cbd3ec
FB
5 * terms and conditions of the copyright.
6 */
7
208408c3
MAL
8#ifndef DEBUG_H_
9#define DEBUG_H_
f0cbd3ec
FB
10
11#define DBG_CALL 0x1
12#define DBG_MISC 0x2
13#define DBG_ERROR 0x4
f0cbd3ec 14
9f349498
JK
15extern int slirp_debug;
16
2afbb788 17#define DEBUG_CALL(fmt, ...) do { \
55ef9c61 18 if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
226ea7a9 19 g_debug(fmt "...", ##__VA_ARGS__); \
2afbb788
MAL
20 } \
21} while (0)
22
23#define DEBUG_ARG(fmt, ...) do { \
55ef9c61 24 if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
226ea7a9 25 g_debug(" " fmt, ##__VA_ARGS__); \
2afbb788
MAL
26 } \
27} while (0)
28
2afbb788 29#define DEBUG_MISC(fmt, ...) do { \
55ef9c61 30 if (G_UNLIKELY(slirp_debug & DBG_MISC)) { \
226ea7a9 31 g_debug(fmt, ##__VA_ARGS__); \
2afbb788
MAL
32 } \
33} while (0)
34
35#define DEBUG_ERROR(fmt, ...) do { \
55ef9c61 36 if (G_UNLIKELY(slirp_debug & DBG_ERROR)) { \
226ea7a9 37 g_debug(fmt, ##__VA_ARGS__); \
2afbb788
MAL
38 } \
39} while (0)
f0cbd3ec 40
208408c3 41#endif /* DEBUG_H_ */