changeset 17342:4f54e8c41086

Cosmetic improvement to MsimMessage debug output.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Sat, 02 Jun 2007 03:26:06 +0000
parents 37499e926a42
children 58b4d103a5b8
files libpurple/protocols/myspace/message.c libpurple/protocols/myspace/myspace.c
diffstat 2 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.c	Sat Jun 02 02:43:43 2007 +0000
+++ b/libpurple/protocols/myspace/message.c	Sat Jun 02 03:26:06 2007 +0000
@@ -325,7 +325,7 @@
 		return g_strdup("<MsimMessage: empty>");
 	}
 
-	return msim_msg_pack_using(msg, msim_msg_debug_string_element, "\n", "<MsimMessage: \n", ">");
+	return msim_msg_pack_using(msg, msim_msg_debug_string_element, "\n", "<MsimMessage: \n", "\n/MsimMessage>");
 }
 
 /** Return a message element data as a new string for a raw protocol message, converting from other types (integer, etc.) if necessary.
@@ -493,6 +493,7 @@
         if (i % 2)
         {
 			/* Odd-numbered ordinal is a value. */
+
 			value = token;
 		
 			/* Incoming protocol messages get tagged as MSIM_TYPE_RAW, which
--- a/libpurple/protocols/myspace/myspace.c	Sat Jun 02 02:43:43 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Sat Jun 02 03:26:06 2007 +0000
@@ -786,13 +786,9 @@
 	{
 		gchar *debug_msg;
 
-		purple_debug_info("msim", "-------- message -------------\n");
-
 		debug_msg = msim_msg_debug_string(msg);
-		purple_debug_info("msim", debug_msg);
+		purple_debug_info("msim", "%s\n", debug_msg);
 		g_free(debug_msg);
-
-		purple_debug_info("msim", "------------------------------\n");
 	}
 #endif