2 * Copyright (c) 1995 Danny Gasparovski.
4 * Please read the file COPYRIGHT for the
5 * terms and conditions of the copyright.
11 #define DBG_CALL (1 << 0)
12 #define DBG_MISC (1 << 1)
13 #define DBG_ERROR (1 << 2)
14 #define DBG_TFTP (1 << 3)
16 extern int slirp_debug
;
18 #define DEBUG_CALL(fmt, ...) do { \
19 if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
20 g_debug(fmt "...", ##__VA_ARGS__); \
24 #define DEBUG_ARG(fmt, ...) do { \
25 if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
26 g_debug(" " fmt, ##__VA_ARGS__); \
30 #define DEBUG_MISC(fmt, ...) do { \
31 if (G_UNLIKELY(slirp_debug & DBG_MISC)) { \
32 g_debug(fmt, ##__VA_ARGS__); \
36 #define DEBUG_ERROR(fmt, ...) do { \
37 if (G_UNLIKELY(slirp_debug & DBG_ERROR)) { \
38 g_debug(fmt, ##__VA_ARGS__); \
42 #define DEBUG_TFTP(fmt, ...) do { \
43 if (G_UNLIKELY(slirp_debug & DBG_TFTP)) { \
44 g_debug(fmt, ##__VA_ARGS__); \