2 * Copyright (c) 1995 Danny Gasparovski.
4 * Please read the file COPYRIGHT for the
5 * terms and conditions of the copyright.
15 extern int slirp_debug
;
17 #define DEBUG_CALL(fmt, ...) do { \
18 if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
19 g_debug(fmt "...", ##__VA_ARGS__); \
23 #define DEBUG_ARG(fmt, ...) do { \
24 if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
25 g_debug(" " fmt, ##__VA_ARGS__); \
29 #define DEBUG_MISC(fmt, ...) do { \
30 if (G_UNLIKELY(slirp_debug & DBG_MISC)) { \
31 g_debug(fmt, ##__VA_ARGS__); \
35 #define DEBUG_ERROR(fmt, ...) do { \
36 if (G_UNLIKELY(slirp_debug & DBG_ERROR)) { \
37 g_debug(fmt, ##__VA_ARGS__); \