changeset 28387:d905474475dc

jabber: Print out the expected/generated caps hashes. This is useful for arguments about which implementation isn't generating proper hashes according to the spec. ;-)
author Paul Aurich <paul@darkrain42.org>
date Fri, 21 Aug 2009 19:17:48 +0000
parents adf7dc41770d
children 76c0969e3ea7
files libpurple/protocols/jabber/caps.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Fri Aug 21 07:54:43 2009 +0000
+++ b/libpurple/protocols/jabber/caps.c	Fri Aug 21 19:17:48 2009 +0000
@@ -468,8 +468,10 @@
 		}
 
 		if (!hash || strcmp(hash, userdata->ver)) {
-			purple_debug_warning("jabber", "Could not validate caps info from %s\n",
-			                     xmlnode_get_attrib(packet, "from"));
+			purple_debug_warning("jabber", "Could not validate caps info from "
+			                     "%s. Expected %s, got %s\n",
+			                     xmlnode_get_attrib(packet, "from"),
+			                     userdata->ver, hash ? hash : "(null)");
 
 			userdata->cb(NULL, NULL, userdata->cb_data);
 			jabber_caps_client_info_destroy(info);