Commit 26f65110338dfbfdf1742a262e751ecd77d01e01

Authored by Matti Virkkunen
1 parent 318f26bd

Add missing linefeeds to logging messages.

libpurple/poller.cpp
... ... @@ -34,7 +34,8 @@ void Poller::fetch_operations() {
34 34 fetch_operations();
35 35 return;
36 36 } else if (status != 200) {
37   - purple_debug_warning("line", "fetchOperations error %d. TODO: Retry after a timeout", status);
  37 + purple_debug_warning("line", "fetchOperations error %d. TODO: Retry after a timeout.\n",
  38 + status);
38 39 return;
39 40 }
40 41  
... ...
libpurple/purpleline.cpp
... ... @@ -451,7 +451,7 @@ void PurpleLine::signal_blist_node_removed(PurpleBlistNode *node) {
451 451  
452 452 char *id_ptr = (char *)g_hash_table_lookup(components, "id");
453 453 if (!id_ptr) {
454   - purple_debug_warning("line", "Tried to remove a chat with no id.");
  454 + purple_debug_warning("line", "Tried to remove a chat with no id.\n");
455 455 return;
456 456 }
457 457  
... ... @@ -478,7 +478,7 @@ void PurpleLine::signal_blist_node_removed(PurpleBlistNode *node) {
478 478 }
479 479 });
480 480 } else {
481   - purple_debug_warning("line", "Tried to remove a chat with no type.");
  481 + purple_debug_warning("line", "Tried to remove a chat with no type.\n");
482 482 return;
483 483 }
484 484 }
... ...
libpurple/purpleline_chats.cpp
... ... @@ -177,7 +177,7 @@ GList *PurpleLine::chat_info() {
177 177 void PurpleLine::join_chat(GHashTable *components) {
178 178 char *id_ptr = (char *)g_hash_table_lookup(components, "id");
179 179 if (!id_ptr) {
180   - purple_debug_warning("line", "Tried to join a chat with no id.");
  180 + purple_debug_warning("line", "Tried to join a chat with no id.\n");
181 181 return;
182 182 }
183 183  
... ... @@ -186,7 +186,7 @@ void PurpleLine::join_chat(GHashTable *components) {
186 186 ChatType type = get_chat_type((char *)g_hash_table_lookup(components, "type"));
187 187  
188 188 if (type == ChatType::ANY) {
189   - purple_debug_warning("line", "Tried to join a chat with weird type.");
  189 + purple_debug_warning("line", "Tried to join a chat with weird type.\n");
190 190 return;
191 191 }
192 192  
... ... @@ -210,7 +210,7 @@ void PurpleLine::join_chat(GHashTable *components) {
210 210 c_out->recv_getGroup(group);
211 211  
212 212 if (!group.__isset.id) {
213   - purple_debug_warning("line", "Couldn't get group: %s", group.id.c_str());
  213 + purple_debug_warning("line", "Couldn't get group: %s\n", group.id.c_str());
214 214 return;
215 215 }
216 216  
... ... @@ -246,7 +246,7 @@ void PurpleLine::join_chat_success(ChatType type, std::string id) {
246 246 void PurpleLine::reject_chat(GHashTable *components) {
247 247 char *id_ptr = (char *)g_hash_table_lookup(components, "id");
248 248 if (!id_ptr) {
249   - purple_debug_warning("line", "Tried to reject an invitation with no id.");
  249 + purple_debug_warning("line", "Tried to reject an invitation with no id.\n");
250 250 return;
251 251 }
252 252  
... ... @@ -282,7 +282,7 @@ void PurpleLine::chat_leave(int id) {
282 282 int PurpleLine::chat_send(int id, const char *message, PurpleMessageFlags flags) {
283 283 PurpleConversation *conv = purple_find_chat(conn, id);
284 284 if (!conv) {
285   - purple_debug_warning("line", "Tried to send to a nonexistent chat.");
  285 + purple_debug_warning("line", "Tried to send to a nonexistent chat.\n");
286 286 return 0;
287 287 }
288 288  
... ...