From 6ec60d20724d2a32e20d25ef75d2af178c242bc2 Mon Sep 17 00:00:00 2001 From: Ronny Chevalier Date: Tue, 24 Jun 2014 19:00:31 +0200 Subject: [PATCH] sd-dhcp6-client: use %m instead of strerror(errno) --- src/libsystemd-network/sd-dhcp6-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index 97a2ba7ea9b..ab4d9e8f420 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -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; }