comparison libpurple/protocols/myspace/message.c @ 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 d8903e1320a9
comparison
equal deleted inserted replaced
17341:37499e926a42 17342:4f54e8c41086
323 if (!msg) 323 if (!msg)
324 { 324 {
325 return g_strdup("<MsimMessage: empty>"); 325 return g_strdup("<MsimMessage: empty>");
326 } 326 }
327 327
328 return msim_msg_pack_using(msg, msim_msg_debug_string_element, "\n", "<MsimMessage: \n", ">"); 328 return msim_msg_pack_using(msg, msim_msg_debug_string_element, "\n", "<MsimMessage: \n", "\n/MsimMessage>");
329 } 329 }
330 330
331 /** Return a message element data as a new string for a raw protocol message, converting from other types (integer, etc.) if necessary. 331 /** Return a message element data as a new string for a raw protocol message, converting from other types (integer, etc.) if necessary.
332 * 332 *
333 * @return gchar * The data as a string, or NULL. Caller must g_free(). 333 * @return gchar * The data as a string, or NULL. Caller must g_free().
491 purple_debug_info("msim", "tok=<%s>, i%2=%d\n", token, i % 2); 491 purple_debug_info("msim", "tok=<%s>, i%2=%d\n", token, i % 2);
492 #endif 492 #endif
493 if (i % 2) 493 if (i % 2)
494 { 494 {
495 /* Odd-numbered ordinal is a value. */ 495 /* Odd-numbered ordinal is a value. */
496
496 value = token; 497 value = token;
497 498
498 /* Incoming protocol messages get tagged as MSIM_TYPE_RAW, which 499 /* Incoming protocol messages get tagged as MSIM_TYPE_RAW, which
499 * represents an untyped piece of data. msim_msg_get_* will 500 * represents an untyped piece of data. msim_msg_get_* will
500 * convert to appropriate types for caller, and handle unescaping if needed. */ 501 * convert to appropriate types for caller, and handle unescaping if needed. */