pidgin: b767b82c: Add some additional debug output to the ...

datallah at pidgin.im datallah at pidgin.im
Thu Nov 5 23:25:27 EST 2009


-----------------------------------------------------------------
Revision: b767b82c6c4b62cc5055fa34d9d74f2d4ae8ac4b
Ancestor: d96212f0e5d57009c2a2454a778f03ebb8d072ce
Author: datallah at pidgin.im
Date: 2009-11-06T04:21:47
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b767b82c6c4b62cc5055fa34d9d74f2d4ae8ac4b

Modified files:
        libpurple/protocols/bonjour/mdns_avahi.c

ChangeLog: 

Add some additional debug output to the avahi mdns implemenation.

-------------- next part --------------
============================================================
--- libpurple/protocols/bonjour/mdns_avahi.c	864564a98c901e99ad8d82708f99a3c6056fcced
+++ libpurple/protocols/bonjour/mdns_avahi.c	aa1aa21e1b7953db07428479f93b2be6c21e4279
@@ -150,6 +150,10 @@ _resolver_callback(AvahiServiceResolver 
 			}
 			break;
 		case AVAHI_RESOLVER_FOUND:
+
+			purple_debug_info("bonjour", "_resolve_callback - name:%s account:%p bb:%p\n",
+				name, account, bb);
+
 			/* create a buddy record */
 			if (bb == NULL)
 				bb = bonjour_buddy_new(name, account);
@@ -173,8 +177,12 @@ _resolver_callback(AvahiServiceResolver 
 
 
 			/* Get the ip as a string */
+			ip[0] = '\0';
 			avahi_address_snprint(ip, AVAHI_ADDRESS_STR_MAX, a);
 
+			purple_debug_info("bonjour", "_resolve_callback - name:%s ip:%s prev_ip:%s\n",
+				name, ip, rd->ip);
+
 			if (rd->ip == NULL || strcmp(rd->ip, ip) != 0) {
 				/* We store duplicates in bb->ips, so we always remove the one */
 				if (rd->ip != NULL) {


More information about the Commits mailing list