Skip to contentSkip to conversation

Suppress debug log of sb16

Qemu-devel Kazu 1 participant 1 message Sep 14, 2005

lore
Share & tools
lore

Kazu

author
#0 lore raw

Hi,

Attached patch suppress debug log of sb16.

Regards,
Kazu

hw/sb16.c Mon Aug 15 16:24:18 2005 renamed from hw/sb16.c Mon Jul 25 03:52:08 2005 +0 -0
@@ -25,10 +25,14 @@
 

#define LENOFA(a) ((int) (sizeof(a)/sizeof(a[0])))

-#define dolog(...) AUD_log ("sb16", __VA_ARGS__)
-
/* #define DEBUG */
/* #define DEBUG_SB16_MOST */
+
+#ifdef DEBUG
+#define dolog(...) AUD_log ("sb16", __VA_ARGS__)
+#else
+#define dolog(...)
+#endif

#ifdef DEBUG
#define ldebug(...) dolog (__VA_ARGS__)

hw/sb16.c +6 -2
@@ -25,10 +25,14 @@
 
 #define LENOFA(a) ((int) (sizeof(a)/sizeof(a[0])))
 
-#define dolog(...) AUD_log ("sb16", __VA_ARGS__)
-
 /* #define DEBUG */
 /* #define DEBUG_SB16_MOST */
+
+#ifdef DEBUG
+#define dolog(...) AUD_log ("sb16", __VA_ARGS__)
+#else
+#define dolog(...)
+#endif
 
 #ifdef DEBUG
 #define ldebug(...) dolog (__VA_ARGS__)