2 * Copyright (c) 1995 Danny Gasparovski.
4 * Please read the file COPYRIGHT for the
5 * terms and conditions of the copyright.
18 extern int slirp_debug
;
20 #define DEBUG_CALL(fmt, ...) do { \
21 if (slirp_debug & DBG_CALL) { \
22 fprintf(dfd, fmt, ##__VA_ARGS__); \
23 fprintf(dfd, "...\n"); \
28 #define DEBUG_ARG(fmt, ...) do { \
29 if (slirp_debug & DBG_CALL) { \
31 fprintf(dfd, fmt, ##__VA_ARGS__); \
37 #define DEBUG_ARGS(fmt, ...) DEBUG_ARG(fmt, ##__VA_ARGS__)
39 #define DEBUG_MISC(fmt, ...) do { \
40 if (slirp_debug & DBG_MISC) { \
41 fprintf(dfd, fmt, ##__VA_ARGS__); \
46 #define DEBUG_ERROR(fmt, ...) do { \
47 if (slirp_debug & DBG_ERROR) { \
48 fprintf(dfd, fmt, ##__VA_ARGS__); \
55 #define DEBUG_CALL(fmt, ...)
56 #define DEBUG_ARG(fmt, ...)
57 #define DEBUG_ARGS(fmt, ...)
58 #define DEBUG_MISC(fmt, ...)
59 #define DEBUG_ERROR(fmt, ...)