changeset 27383:84b2e1770ede

Convert the #ifdef DEBUG here to use the PURPLE_VERBOSE_DEBUG variable.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Sat, 04 Jul 2009 23:52:03 +0000
parents b0bf07c7f22f
children 377e063ecda5
files libpurple/protocols/yahoo/yahoo_packet.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_packet.c	Sat Jul 04 23:37:22 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo_packet.c	Sat Jul 04 23:52:03 2009 +0000
@@ -187,15 +187,13 @@
 			pos = x;
 			pkt->hash = g_slist_prepend(pkt->hash, pair);
 
-#ifdef DEBUG
-			{
+			if (purple_debug_is_verbose()) {
 				char *esc;
 				esc = g_strescape(pair->value, NULL);
 				purple_debug(PURPLE_DEBUG_MISC, "yahoo",
 						   "Key: %d  \tValue: %s\n", pair->key, esc);
 				g_free(esc);
 			}
-#endif /* DEBUG */
 		} else {
 			g_free(pair);
 		}