Mercurial > pidgin
changeset 17694:231b87b76da4
In debug messages, don't output unknown elem->type fields as %c too (only as
%d), so that utf-8 errors do not occur.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Thu, 05 Jul 2007 06:10:30 +0000 |
parents | 3c613fec5617 |
children | 13bba54b429d |
files | libpurple/protocols/myspace/message.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.c Thu Jul 05 03:13:34 2007 +0000 +++ b/libpurple/protocols/myspace/message.c Thu Jul 05 06:10:30 2007 +0000 @@ -104,7 +104,7 @@ break; default: - purple_debug_info("msim", "msim_send: unknown type %d (%c)\n", type, type); + purple_debug_info("msim", "msim_send: unknown type %d\n", type); break; } } while(key); @@ -152,7 +152,7 @@ break; /* TODO: other types */ default: - purple_debug_info("msim", "msim_msg_clone_element: unknown type %d (%c)\n", elem->type, elem->type); + purple_debug_info("msim", "msim_msg_clone_element: unknown type %d\n", elem->type); g_return_if_fail(NULL); } @@ -220,8 +220,7 @@ break; default: - purple_debug_info("msim", "msim_msg_free_element: not freeing unknown type %d (%c)\n", - elem->type, elem->type); + purple_debug_info("msim", "msim_msg_free_element: not freeing unknown type %d\n", elem->type); break; } @@ -454,7 +453,7 @@ break; default: - string = g_strdup_printf("%s(unknown type %d (%c)", elem->name, elem->type, elem->type); + string = g_strdup_printf("%s(unknown type %d", elem->name, elem->type); break; } @@ -530,7 +529,7 @@ return NULL; default: - purple_debug_info("msim", "field %s, unknown type %d (%c)\n", elem->name, elem->type, elem->type); + purple_debug_info("msim", "field %s, unknown type %d\n", elem->name, elem->type); return NULL; } }