projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
odhcpd: Replace strerror(errno) with %m format
[project/odhcpd.git]
/
src
/
odhcpd.c
diff --git
a/src/odhcpd.c
b/src/odhcpd.c
index
58c4338
..
71b803d
100644
(file)
--- a/
src/odhcpd.c
+++ b/
src/odhcpd.c
@@
-187,8
+187,8
@@
ssize_t odhcpd_send(int socket, struct sockaddr_in6 *dest,
ssize_t sent = sendmsg(socket, &msg, MSG_DONTWAIT);
if (sent < 0)
ssize_t sent = sendmsg(socket, &msg, MSG_DONTWAIT);
if (sent < 0)
- syslog(LOG_NOTICE, "Failed to send to %s%%%s (%
s
)",
- ipbuf, iface->ifname
, strerror(errno)
);
+ syslog(LOG_NOTICE, "Failed to send to %s%%%s (%
m
)",
+ ipbuf, iface->ifname);
else
syslog(LOG_DEBUG, "Sent %li bytes to %s%%%s",
(long)sent, ipbuf, iface->ifname);
else
syslog(LOG_DEBUG, "Sent %li bytes to %s%%%s",
(long)sent, ipbuf, iface->ifname);