print out the servconn number when it's disconnected

Tue, 30 Sep 2008 06:40:11 +0000

author
Ka-Hing Cheung <khc@pidgin.im>
date
Tue, 30 Sep 2008 06:40:11 +0000
changeset 24421
7e436b064a17
parent 24420
e83317602b22
child 24422
812cce26763c

print out the servconn number when it's disconnected

References #3330

libpurple/protocols/msn/servconn.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/servconn.c	Tue Sep 30 05:52:57 2008 +0000
+++ b/libpurple/protocols/msn/servconn.c	Tue Sep 30 06:40:11 2008 +0000
@@ -400,9 +400,9 @@
 		return;
 
 	} else if (len <= 0) {
-		purple_debug_error("msn", "servconn read error,"
-		                          "len: %" G_GSSIZE_FORMAT ", errno: %d, error: %s\n",
-		                          len, errno, g_strerror(errno));
+		purple_debug_error("msn", "servconn %03d read error,"
+			"len: %" G_GSSIZE_FORMAT ", errno: %d, error: %s\n",
+			servconn->num, len, errno, g_strerror(errno));
 		msn_servconn_got_error(servconn, MSN_SERVCONN_ERROR_READ);
 
 		return;

mercurial