pidgin: cecad40e: Convert the #ifdef DEBUG here to use the...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Sat Jul 4 22:31:14 EDT 2009


-----------------------------------------------------------------
Revision: cecad40e52a68c0c58412ba2771bee8decc909db
Ancestor: c36d0119d4450984e90ff021bb1c13972c3f8d1b
Author: rekkanoryo at pidgin.im
Date: 2009-07-04T23:52:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/cecad40e52a68c0c58412ba2771bee8decc909db

Modified files:
        libpurple/protocols/yahoo/yahoo_packet.c

ChangeLog: 

Convert the #ifdef DEBUG here to use the PURPLE_VERBOSE_DEBUG variable.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_packet.c	d89a01e8ac659d36378f8ae3c71f6e3f111b868e
+++ libpurple/protocols/yahoo/yahoo_packet.c	e88c5cc475ba3e0fb8e654138bbbf3aa7eebd469
@@ -187,15 +187,13 @@ void yahoo_packet_read(struct yahoo_pack
 			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);
 		}


More information about the Commits mailing list