comparison libpurple/protocols/bonjour/mdns_avahi.c @ 19653:941965d6fd88

Patch from QuLogic. Fixes #2903 ('Missing newlines in debug messages.')
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 05 Sep 2007 22:33:22 +0000
parents affacee881e8
children 44b4e8bd759b
comparison
equal deleted inserted replaced
19652:e21002d106ab 19653:941965d6fd88
186 purple_debug_info("bonjour", "Successfully registered buddy icon data.\n"); 186 purple_debug_info("bonjour", "Successfully registered buddy icon data.\n");
187 case AVAHI_ENTRY_GROUP_COLLISION: 187 case AVAHI_ENTRY_GROUP_COLLISION:
188 purple_debug_error("bonjour", "Collision registering buddy icon data.\n"); 188 purple_debug_error("bonjour", "Collision registering buddy icon data.\n");
189 break; 189 break;
190 case AVAHI_ENTRY_GROUP_FAILURE: 190 case AVAHI_ENTRY_GROUP_FAILURE:
191 purple_debug_error("bonjour", "Error registering buddy icon data: %s\n.", 191 purple_debug_error("bonjour", "Error registering buddy icon data: %s.\n",
192 avahi_strerror(avahi_client_errno(avahi_entry_group_get_client(g)))); 192 avahi_strerror(avahi_client_errno(avahi_entry_group_get_client(g))));
193 break; 193 break;
194 case AVAHI_ENTRY_GROUP_UNCOMMITED: 194 case AVAHI_ENTRY_GROUP_UNCOMMITED:
195 case AVAHI_ENTRY_GROUP_REGISTERING: 195 case AVAHI_ENTRY_GROUP_REGISTERING:
196 break; 196 break;
269 poll_api = avahi_glib_poll_get(idata->glib_poll); 269 poll_api = avahi_glib_poll_get(idata->glib_poll);
270 270
271 idata->client = avahi_client_new(poll_api, 0, NULL, data, &error); 271 idata->client = avahi_client_new(poll_api, 0, NULL, data, &error);
272 272
273 if (idata->client == NULL) { 273 if (idata->client == NULL) {
274 purple_debug_error("bonjour", "Error initializing Avahi: %s", avahi_strerror(error)); 274 purple_debug_error("bonjour", "Error initializing Avahi: %s\n", avahi_strerror(error));
275 avahi_glib_poll_free(idata->glib_poll); 275 avahi_glib_poll_free(idata->glib_poll);
276 g_free(idata); 276 g_free(idata);
277 return FALSE; 277 return FALSE;
278 } 278 }
279 279
352 352
353 idata->sb = avahi_service_browser_new(idata->client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, ICHAT_SERVICE, NULL, 0, _browser_callback, data->account); 353 idata->sb = avahi_service_browser_new(idata->client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, ICHAT_SERVICE, NULL, 0, _browser_callback, data->account);
354 if (!idata->sb) { 354 if (!idata->sb) {
355 355
356 purple_debug_error("bonjour", 356 purple_debug_error("bonjour",
357 "Unable to initialize service browser. Error: %s\n.", 357 "Unable to initialize service browser. Error: %s.\n",
358 avahi_strerror(avahi_client_errno(idata->client))); 358 avahi_strerror(avahi_client_errno(idata->client)));
359 return FALSE; 359 return FALSE;
360 } 360 }
361 361
362 return TRUE; 362 return TRUE;
486 _buddy_icon_record_cb, buddy); 486 _buddy_icon_record_cb, buddy);
487 g_free(name); 487 g_free(name);
488 488
489 if (!idata->buddy_icon_rec_browser) { 489 if (!idata->buddy_icon_rec_browser) {
490 purple_debug_error("bonjour", 490 purple_debug_error("bonjour",
491 "Unable to initialize buddy icon record browser. Error: %s\n.", 491 "Unable to initialize buddy icon record browser. Error: %s.\n",
492 avahi_strerror(avahi_client_errno(session_idata->client))); 492 avahi_strerror(avahi_client_errno(session_idata->client)));
493 } 493 }
494 494
495 } 495 }
496 496