X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=src%2Fdhcpv6.c;h=9dce577250400b29a0dde12841d6b7ea0ba90882;hb=acb4fc01446093c1f1a89c225041adf4db0d18bf;hp=0944dd205aae7e6482ae0d6bd7d647e94151823a;hpb=c638c3400fd043c68e80513313708ce93c83ae28;p=project%2Fodhcp6c.git diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 0944dd2..9dce577 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -522,9 +522,9 @@ static void dhcpv6_send(enum dhcpv6_msg type, uint8_t trid[3], uint32_t ecs) if (sendmsg(sock, &msg, 0) < 0) { char in6_str[INET6_ADDRSTRLEN]; - syslog(LOG_ERR, "Failed to send DHCPV6 message to %s (%m)", + syslog(LOG_ERR, "Failed to send DHCPV6 message to %s (%s)", inet_ntop(AF_INET6, (const void *)&srv.sin6_addr, - in6_str, sizeof(in6_str))); + in6_str, sizeof(in6_str)), strerror(errno)); } }