Mercurial > pidgin
diff libpurple/protocols/myspace/myspace.c @ 22486:3225c99785b8
Fix a bunch of compiler warnings caused by my addition of G_GNUC_PRINTF()
to our debug functions (I really thought we had added that in a while ago?)
I didn't fix all of them... just most of them.
Oh, see these pages for a little info:
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Macros.html#G-GNUC-PRINTF:CAPS
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 16 Mar 2008 20:36:52 +0000 |
parents | 4900f9b9827f |
children | c7742b830585 e4a4bc86c547 |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Sun Mar 16 20:35:23 2008 +0000 +++ b/libpurple/protocols/myspace/myspace.c Sun Mar 16 20:36:52 2008 +0000 @@ -344,10 +344,12 @@ purple_connection_update_progress(session->gc, _("Reading challenge"), 1, 4); - purple_debug_info("msim", "nc is %d bytes, decoded\n", nc_len); + purple_debug_info("msim", "nc is %" G_GSIZE_FORMAT + " bytes, decoded\n", nc_len); if (nc_len != MSIM_AUTH_CHALLENGE_LENGTH) { - purple_debug_info("msim", "bad nc length: %x != 0x%x\n", nc_len, MSIM_AUTH_CHALLENGE_LENGTH); + purple_debug_info("msim", "bad nc length: %" G_GSIZE_MODIFIER + "x != 0x%x\n", nc_len, MSIM_AUTH_CHALLENGE_LENGTH); purple_connection_error_reason (session->gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unexpected challenge length from server")); @@ -493,8 +495,8 @@ if (data_out_len != data_len) { purple_debug_info("msim", "msim_compute_login_response: " - "data length mismatch: %d != %d\n", - data_out_len, data_len); + "data length mismatch: %" G_GSIZE_FORMAT " != %" + G_GSIZE_FORMAT "\n", data_out_len, data_len); } #ifdef MSIM_DEBUG_LOGIN_CHALLENGE @@ -764,7 +766,7 @@ username = msim_msg_get_string(msg, "_username"); g_return_val_if_fail(username != NULL, FALSE); - purple_debug_info("msim", "msim_incoming_action: action <%s> from <%d>\n", + purple_debug_info("msim", "msim_incoming_action: action <%s> from <%s>\n", msg_text, username); if (g_str_equal(msg_text, "%typing%")) { @@ -2796,7 +2798,7 @@ guint uid; contact_info = (MsimMessage *)data; - purple_debug_info("msim_add_contact_from_server_cb", "contact_info addr=%X\n", contact_info); + purple_debug_info("msim_add_contact_from_server_cb", "contact_info addr=%p\n", contact_info); uid = msim_msg_get_integer(contact_info, "ContactID"); if (!user_lookup_info) { @@ -2879,7 +2881,7 @@ uid_str = g_strdup_printf("%d", uid); purple_debug_info("msim_add_contact_from_server", - "contact_info addr=%X\n", contact_info); + "contact_info addr=%p\n", contact_info); msim_lookup_user(session, uid_str, msim_add_contact_from_server_cb, (gpointer)msim_msg_clone(contact_info)); g_free(uid_str); } else {