1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00

sd-dhcp6-client: use %m instead of strerror(errno)

This commit is contained in:
Ronny Chevalier 2014-06-24 19:00:31 +02:00 committed by Tom Gundersen
parent 971ff8c78b
commit 6ec60d2072

View File

@ -650,7 +650,7 @@ static int client_receive_message(sd_event_source *s, int fd, uint32_t revents,
len = read(fd, message, buflen); len = read(fd, message, buflen);
if ((size_t)len < sizeof(DHCP6Message)) { if ((size_t)len < sizeof(DHCP6Message)) {
log_dhcp6_client(client, "could not receive message from UDP socket: %s", strerror(errno)); log_dhcp6_client(client, "could not receive message from UDP socket: %m");
return 0; return 0;
} }