diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-11-22 02:06:37 +0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-01-14 00:44:29 +0100 |
commit | 039d5b6312738ba552527046509777e94a388ed5 (patch) | |
tree | 75aeaa41a7f925b6402cea001ec26175e55d73ff /slirp/misc.c | |
parent | 208408c3ed3f02ca97598f90319a2c5760271454 (diff) | |
download | qemu-039d5b6312738ba552527046509777e94a388ed5.zip qemu-039d5b6312738ba552527046509777e94a388ed5.tar.gz qemu-039d5b6312738ba552527046509777e94a388ed5.tar.bz2 |
slirp: introduce SLIRP_DEBUG environment variable
Learn to read SLIRP_DEBUG=call,misc,error (all or help also handled)
to set the slirp_debug flags.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp/misc.c')
-rw-r--r-- | slirp/misc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/slirp/misc.c b/slirp/misc.c index e30d2ce..a0f104b 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -11,14 +11,6 @@ #include "qemu/error-report.h" #include "qemu/main-loop.h" -#ifdef DEBUG -#define SLIRP_DEBUG (DBG_CALL | DBG_MISC | DBG_ERROR) -#else -#define SLIRP_DEBUG 0 -#endif - -int slirp_debug = SLIRP_DEBUG; - inline void insque(void *a, void *b) { |