]> git.proxmox.com Git - qemu.git/blobdiff - slirp/slirp.h
Make Slirp statistics gathering and output conditional to LOG_ENABLED
[qemu.git] / slirp / slirp.h
index 1ff68cb0b4969f68aeda9541e3d894ef40b4c5dd..ecff1d2584fe29f22c6345762c523579a737f0b4 100644 (file)
@@ -3,7 +3,16 @@
 
 #define CONFIG_QEMU
 
-#define DEBUG 1
+//#define DEBUG 1
+
+// Uncomment the following line to enable SLIRP statistics printing in Qemu
+//#define LOG_ENABLED
+
+#ifdef LOG_ENABLED
+#define STAT(expr) expr
+#else
+#define STAT(expr) do { } while(0)
+#endif
 
 #ifndef CONFIG_QEMU
 #include "version.h"