linux-user: Initialize aarch64 pac keys
[qemu/ar7.git] / slirp / debug.h
blob269d97d8073df0ea03a78f9ef28ab129994175d8
1 /*
2 * Copyright (c) 1995 Danny Gasparovski.
4 * Please read the file COPYRIGHT for the
5 * terms and conditions of the copyright.
6 */
8 #ifndef DEBUG_H_
9 #define DEBUG_H_
11 #define DBG_CALL 0x1
12 #define DBG_MISC 0x2
13 #define DBG_ERROR 0x4
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__); \
20 } \
21 } while (0)
23 #define DEBUG_ARG(fmt, ...) do { \
24 if (G_UNLIKELY(slirp_debug & DBG_CALL)) { \
25 g_debug(" " fmt, ##__VA_ARGS__); \
26 } \
27 } while (0)
29 #define DEBUG_MISC(fmt, ...) do { \
30 if (G_UNLIKELY(slirp_debug & DBG_MISC)) { \
31 g_debug(fmt, ##__VA_ARGS__); \
32 } \
33 } while (0)
35 #define DEBUG_ERROR(fmt, ...) do { \
36 if (G_UNLIKELY(slirp_debug & DBG_ERROR)) { \
37 g_debug(fmt, ##__VA_ARGS__); \
38 } \
39 } while (0)
41 #endif /* DEBUG_H_ */