# HG changeset patch # User John Bailey # Date 1246751523 0 # Node ID 84b2e1770ede261505d358a9022f46086eb01658 # Parent b0bf07c7f22f1994b31165b6157b887b77c7e641 Convert the #ifdef DEBUG here to use the PURPLE_VERBOSE_DEBUG variable. diff -r b0bf07c7f22f -r 84b2e1770ede libpurple/protocols/yahoo/yahoo_packet.c --- 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); }