mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
sd-dhcp6-client: use %m instead of strerror(errno)
This commit is contained in:
committed by
Tom Gundersen
parent
971ff8c78b
commit
6ec60d2072
@@ -650,7 +650,7 @@ static int client_receive_message(sd_event_source *s, int fd, uint32_t revents,
|
||||
|
||||
len = read(fd, message, buflen);
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user