pidgin: d8d0c78f: Add newline at end of debug messages.
qulogic at pidgin.im
qulogic at pidgin.im
Fri Sep 4 19:11:46 EDT 2009
-----------------------------------------------------------------
Revision: d8d0c78fad568b2380be8a8c68c1474ff3ad4ea5
Ancestor: d7ded306918af80aa9f992e1c16bf8089a4e3044
Author: qulogic at pidgin.im
Date: 2009-09-04T23:07:49
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d8d0c78fad568b2380be8a8c68c1474ff3ad4ea5
Modified files:
libpurple/protocols/qq/buddy_list.c
libpurple/protocols/qq/buddy_opt.c
libpurple/protocols/qq/file_trans.c
libpurple/protocols/qq/group_im.c
libpurple/protocols/qq/group_internal.c
libpurple/protocols/qq/qq_network.c
libpurple/protocols/qq/qq_process.c
libpurple/protocols/qq/send_file.c
ChangeLog:
Add newline at end of debug messages.
-------------- next part --------------
============================================================
--- libpurple/protocols/qq/buddy_list.c 7d6e59a8a6aaa29134679808cdd16255116ab271
+++ libpurple/protocols/qq/buddy_list.c 9dc41d976f9b110d1a617da43807abe75e2fc793
@@ -215,7 +215,7 @@ guint8 qq_process_get_buddies_online(gui
if (qd->client_version >= 2007) bytes += 4;
if (bs.uid == 0 || (bytes - bytes_start) != entry_len) {
- purple_debug_error("QQ", "uid=0 or entry complete len(%d) != %d",
+ purple_debug_error("QQ", "uid=0 or entry complete len(%d) != %d\n",
(bytes - bytes_start), entry_len);
continue;
} /* check if it is a valid entry */
@@ -281,7 +281,7 @@ guint16 qq_process_get_buddies(guint8 *d
qd = (qq_data *) gc->proto_data;
if (data_len <= 2) {
- purple_debug_error("QQ", "empty buddies list");
+ purple_debug_error("QQ", "empty buddies list\n");
return -1;
}
/* qq_show_packet("QQ get buddies list", data, data_len); */
@@ -352,7 +352,7 @@ guint16 qq_process_get_buddies(guint8 *d
if(bytes > data_len) {
purple_debug_error("QQ",
- "qq_process_get_buddies: Dangerous error! maybe protocol changed, notify developers!");
+ "qq_process_get_buddies: Dangerous error! maybe protocol changed, notify developers!\n");
}
purple_debug_info("QQ", "Received %d buddies, nextposition=%u\n",
@@ -397,7 +397,7 @@ guint32 qq_process_get_buddies_and_rooms
/* 05: skip unknow 0x00 */
bytes += 1;
if (uid == 0 || (type != 0x1 && type != 0x4)) {
- purple_debug_info("QQ", "Buddy entry, uid=%u, type=%d", uid, type);
+ purple_debug_info("QQ", "Buddy entry, uid=%u, type=%d\n", uid, type);
continue;
}
if(0x1 == type) { /* a buddy */
@@ -407,7 +407,7 @@ guint32 qq_process_get_buddies_and_rooms
} else { /* a group */
rmd = qq_room_data_find(gc, uid);
if(rmd == NULL) {
- purple_debug_info("QQ", "Unknow room id %u", uid);
+ purple_debug_info("QQ", "Unknown room id %u\n", uid);
qq_send_room_cmd_only(gc, QQ_ROOM_CMD_GET_INFO, uid);
} else {
rmd->my_role = QQ_ROOM_ROLE_YES;
@@ -418,7 +418,7 @@ guint32 qq_process_get_buddies_and_rooms
if(bytes > data_len) {
purple_debug_error("QQ",
- "qq_process_get_buddies_and_rooms: Dangerous error! maybe protocol changed, notify developers!");
+ "qq_process_get_buddies_and_rooms: Dangerous error! maybe protocol changed, notify developers!\n");
}
purple_debug_info("QQ", "Received %d buddies and %d groups, nextposition=%u\n", i, j, (guint) position);
============================================================
--- libpurple/protocols/qq/buddy_opt.c 67ff2e18be8108576551ad7355e6bf874828e2aa
+++ libpurple/protocols/qq/buddy_opt.c 543ee863cdda7025b0bbf7f9cdf00cd3ad04981a
@@ -805,7 +805,7 @@ void qq_process_add_buddy_no_auth(Purple
dest_uid = segments[0];
reply = segments[1];
if (strtoul(dest_uid, NULL, 10) != qd->uid) { /* should not happen */
- purple_debug_error("QQ", "Add buddy reply is to [%s], not me!", dest_uid);
+ purple_debug_error("QQ", "Add buddy reply is to [%s], not me!\n", dest_uid);
g_strfreev(segments);
return;
}
@@ -822,7 +822,7 @@ void qq_process_add_buddy_no_auth(Purple
}
qq_request_get_buddies_online(gc, 0, 0);
- purple_debug_info("QQ", "Successed adding into %u's buddy list", uid);
+ purple_debug_info("QQ", "Successed adding into %u's buddy list\n", uid);
g_strfreev(segments);
return;
}
@@ -868,7 +868,7 @@ void qq_process_add_buddy_no_auth_ex(Pur
g_return_if_fail(dest_uid == uid);
if (reply == 0x99) {
- purple_debug_info("QQ", "Successed adding buddy %u\n", uid);
+ purple_debug_info("QQ", "Successfully added buddy %u\n", uid);
qq_buddy_find_or_new(gc, uid);
qq_request_buddy_info(gc, uid, 0, 0);
@@ -882,7 +882,7 @@ void qq_process_add_buddy_no_auth_ex(Pur
}
if (reply != 0) {
- purple_debug_info("QQ", "Failed adding buddy %u, Unknow reply 0x%02X\n",
+ purple_debug_info("QQ", "Failed adding buddy %u, Unknown reply 0x%02X\n",
uid, reply);
}
============================================================
--- libpurple/protocols/qq/file_trans.c fca62851a2a3c22e64c44f18723b44372680f226
+++ libpurple/protocols/qq/file_trans.c b12064f3966a9aa8776603d63c8a000517472e21
@@ -325,7 +325,7 @@ void qq_send_file_ctl_packet(PurpleConne
}
if (bytes != bytes_expected) {
- purple_debug_error("QQ", "qq_send_file_ctl_packet: Expected to get %d bytes, but get %d",
+ purple_debug_error("QQ", "qq_send_file_ctl_packet: Expected to get %d bytes, but get %d\n",
bytes_expected, bytes);
return;
}
@@ -342,7 +342,7 @@ void qq_send_file_ctl_packet(PurpleConne
guint8 *buf;
int buflen;
hex_dump = hex_dump_to_str(encrypted, encrypted_len);
- purple_debug_info("QQ", "encrypted packet: \n%s", hex_dump);
+ purple_debug_info("QQ", "encrypted packet: \n%s\n", hex_dump);
g_free(hex_dump);
buf = g_newa(guint8, MAX_PACKET_SIZE);
buflen = encrypted_len;
@@ -352,7 +352,7 @@ void qq_send_file_ctl_packet(PurpleConne
purple_debug_info("QQ", "checksum ok\n");
hex_dump = hex_dump_to_str(buf, buflen);
- purple_debug_info("QQ", "decrypted packet: \n%s", hex_dump);
+ purple_debug_info("QQ", "decrypted packet: \n%s\n", hex_dump);
g_free(hex_dump);
} else {
purple_debug_info("QQ", "decrypt fail\n");
@@ -820,6 +820,6 @@ void qq_process_recv_file(PurpleConnecti
_qq_process_recv_file_data(gc, data + bytes, len - bytes);
break;
default:
- purple_debug_info("QQ", "unknown packet tag");
+ purple_debug_info("QQ", "unknown packet tag\n");
}
}
============================================================
--- libpurple/protocols/qq/group_im.c 5ee39774770ef836d3a730572cd8ded667312e04
+++ libpurple/protocols/qq/group_im.c f00128cc0c48fab0d4b39fca942e9c5b00c30c83
@@ -185,7 +185,7 @@ void qq_room_got_chat_in(PurpleConnectio
}
if (NULL == conv) {
- purple_debug_info("QQ", "Conversion of %u is not open, missing from %d:/n%s/v",
+ purple_debug_info("QQ", "Conversion of %u is not open, missing from %d:/n%s/v\n",
room_id, uid_from, msg);
return;
}
============================================================
--- libpurple/protocols/qq/group_internal.c a3d722f98ea68974db789d7c49e63968102849fd
+++ libpurple/protocols/qq/group_internal.c 5352d98aebda500fbb4654ce2beddb8c2371c1b3
@@ -188,7 +188,7 @@ void qq_room_remove(PurpleConnection *gc
g_return_if_fail (gc != NULL && gc->proto_data != NULL);
qd = (qq_data *) gc->proto_data;
- purple_debug_info("QQ", "Find and remove room data, id %u", id);
+ purple_debug_info("QQ", "Find and remove room data, id %u\n", id);
rmd = qq_room_data_find(gc, id);
g_return_if_fail (rmd != NULL);
@@ -196,7 +196,7 @@ void qq_room_remove(PurpleConnection *gc
qd->groups = g_list_remove(qd->groups, rmd);
room_data_free(rmd);
- purple_debug_info("QQ", "Find and remove chat, ext_id %u", ext_id);
+ purple_debug_info("QQ", "Find and remove chat, ext_id %u\n", ext_id);
num_str = g_strdup_printf("%u", ext_id);
chat = purple_blist_find_chat(purple_connection_get_account(gc), num_str);
g_free(num_str);
============================================================
--- libpurple/protocols/qq/qq_network.c 105c215f6e274425d41428930520b4da1c08af9c
+++ libpurple/protocols/qq/qq_network.c 2aa16143848364a0edc00f7c8d6bf266780d8ce3
@@ -968,7 +968,7 @@ gboolean connect_to_server(PurpleConnect
qd->conn_data = purple_proxy_connect_udp(gc, account, server, port, connect_cb, gc);
}
if ( qd->conn_data == NULL ) {
- purple_debug_error("QQ", "Couldn't create socket");
+ purple_debug_error("QQ", "Couldn't create socket\n");
return FALSE;
}
#else
@@ -978,7 +978,7 @@ gboolean connect_to_server(PurpleConnect
if(qd->use_tcp) {
qd->conn_data = purple_proxy_connect(gc, account, server, port, connect_cb, gc);
if ( qd->conn_data == NULL ) {
- purple_debug_error("QQ", "Unable to connect.");
+ purple_debug_error("QQ", "Unable to connect.\n");
return FALSE;
}
return TRUE;
@@ -987,7 +987,7 @@ gboolean connect_to_server(PurpleConnect
purple_debug_info("QQ", "UDP Connect to %s:%d\n", server, port);
qd->udp_query_data = purple_dnsquery_a(server, port, udp_host_resolved, gc);
if ( qd->udp_query_data == NULL ) {
- purple_debug_error("QQ", "Could not resolve hostname");
+ purple_debug_error("QQ", "Could not resolve hostname\n");
return FALSE;
}
#endif
============================================================
--- libpurple/protocols/qq/qq_process.c 79a3fcb52c95770011eac95a977b6925aded5076
+++ libpurple/protocols/qq/qq_process.c 2cb707bcd39e9f20df16ae5d4f7de1fb63d7542d
@@ -426,7 +426,7 @@ static void do_server_notice(PurpleConne
if (qd->is_show_notice) {
qq_got_message(gc, content);
} else {
- purple_debug_info("QQ", "QQ Server notice from %s:\n%s", from, msg_utf8);
+ purple_debug_info("QQ", "QQ Server notice from %s:\n%s\n", from, msg_utf8);
}
g_free(msg_utf8);
g_free(title);
============================================================
--- libpurple/protocols/qq/send_file.c 8c5ca8276047ac5fed56a754b0dcce11e2a60c5d
+++ libpurple/protocols/qq/send_file.c 599895ab8b186c9fe2b3c3476b48eca504bd7a01
@@ -390,7 +390,7 @@ static void _qq_xfer_init_socket(PurpleX
info->local_real_ip = 0x7f000001;
*/
info->local_real_ip = g_ntohl(inet_addr(purple_network_get_my_ip(-1)));
- purple_debug_info("QQ", "local real ip is %x", info->local_real_ip);
+ purple_debug_info("QQ", "local real ip is %x\n", info->local_real_ip);
for (i = 0; i < 2; i++) {
sockfd = socket(PF_INET, SOCK_DGRAM, 0);
@@ -558,7 +558,7 @@ static void _qq_send_packet_file_reject
guint8 *raw_data;
gint packet_len, bytes;
- purple_debug_info("_qq_send_packet_file_reject", "start");
+ purple_debug_info("_qq_send_packet_file_reject", "start\n");
qd = (qq_data *) gc->proto_data;
packet_len = 64;
More information about the Commits
mailing list