summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-01-20 21:46:33 +0200
committerTor Lillqvist <tml@collabora.com>2014-01-21 08:35:11 +0200
commitd67c311983c4a7390fa9a11e1ca737756e0382fb (patch)
treeea8c05a0c9f3f4ef50dc159a8c0e85e48347cb9e /sd
parent276cae1e467af0219ea1a45bac331937d7b9dc63 (diff)
Use SAL_INFO consistently, bin a random printf
Change-Id: I2c7a0d4c3c2714bd1e2773c0749edd20ee38628f
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/AvahiNetworkService.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/remotecontrol/AvahiNetworkService.cxx b/sd/source/ui/remotecontrol/AvahiNetworkService.cxx
index 04d8e572a132..5b5fadf56945 100644
--- a/sd/source/ui/remotecontrol/AvahiNetworkService.cxx
+++ b/sd/source/ui/remotecontrol/AvahiNetworkService.cxx
@@ -46,7 +46,7 @@ static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state,
switch (state) {
case AVAHI_ENTRY_GROUP_ESTABLISHED :
/* The entry group has been established successfully */
- SAL_INFO( "sdremote.wifi", "Service " << avahiService->getName() << " successfully established." );
+ SAL_INFO( "sdremote.wifi", "Service '" << avahiService->getName() << "' successfully established." );
break;
case AVAHI_ENTRY_GROUP_COLLISION : {
@@ -57,7 +57,7 @@ static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state,
n = avahi_alternative_service_name(avahiService->getName().c_str());
avahiService->setName(n);
- SAL_INFO( "sdremote.wifi", "Service name collision, renaming service to " << avahiService->getName() );
+ SAL_INFO( "sdremote.wifi", "Service name collision, renaming service to '" << avahiService->getName() << "'");
/* And recreate the services */
create_services(avahi_entry_group_get_client(g));
@@ -94,7 +94,7 @@ static void create_services(AvahiClient *c) {
* because it was reset previously, add our entries. */
if (avahi_entry_group_is_empty(group)) {
- fprintf(stderr, "Adding service '%s'\n", avahiService->getName().c_str());
+ SAL_INFO("sdremote.wifi", "Adding service '" << avahiService->getName() << "'");
char r[128];
snprintf(r, sizeof(r), "random=%i", rand());
int ret = avahi_entry_group_add_service(