QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
/*
|
|
* Copyright (c) 1995 Danny Gasparovski.
|
|
*
|
|
* Please read the file COPYRIGHT for the
|
|
* terms and conditions of the copyright.
|
|
*/
|
|
|
|
#ifndef DEBUG_H_
|
|
#define DEBUG_H_
|
|
|
|
#define DBG_CALL 0x1
|
|
#define DBG_MISC 0x2
|
|
#define DBG_ERROR 0x4
|
|
|
|
extern int slirp_debug;
|
|
|
|
#define DEBUG_CALL(fmt, ...) do { \
|
|
if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
|
|
g_debug(fmt "...", ##__VA_ARGS__); \
|
|
} \
|
|
} while (0)
|
|
|
|
#define DEBUG_ARG(fmt, ...) do { \
|
|
if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
|
|
g_debug(" " fmt, ##__VA_ARGS__); \
|
|
} \
|
|
} while (0)
|
|
|
|
#define DEBUG_MISC(fmt, ...) do { \
|
|
if (G_UNLIKELY(slirp_debug & DBG_MISC)) { \
|
|
g_debug(fmt, ##__VA_ARGS__); \
|
|
} \
|
|
} while (0)
|
|
|
|
#define DEBUG_ERROR(fmt, ...) do { \
|
|
if (G_UNLIKELY(slirp_debug & DBG_ERROR)) { \
|
|
g_debug(fmt, ##__VA_ARGS__); \
|
|
} \
|
|
} while (0)
|
|
|
|
#endif /* DEBUG_H_ */
|
|
|