summaryrefslogtreecommitdiffstats
path: root/avahi-core/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/socket.c')
-rw-r--r--avahi-core/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-core/socket.c b/avahi-core/socket.c
index de27226..12a8605 100644
--- a/avahi-core/socket.c
+++ b/avahi-core/socket.c
@@ -114,7 +114,7 @@ int avahi_mdns_mcast_join_ipv4(int fd, int idx) {
memset(&mreq, 0, sizeof(mreq));
if ((!if_indextoname(idx, ifreq.ifr_name))) {
- avahi_log_warn("Can't find iface name for iface index %i:%s\n", idx, strerror(errno));
+ avahi_log_warn("if_indextoname failed: %s", strerror(errno));
return -1;
}
@@ -171,7 +171,7 @@ int avahi_mdns_mcast_leave_ipv4(int fd, int idx) {
memset(&mreq, 0, sizeof(mreq));
if ((!if_indextoname(idx, ifreq.ifr_name))) {
- avahi_log_warn("Can't find iface name for iface index %i:%s\n", idx, strerror(errno));
+ avahi_log_warn("if_indextoname failed: %s", strerror(errno));
return -1;
}