From: Lennart Poettering Date: Mon, 18 Jan 2016 22:29:04 +0000 (+0100) Subject: resolved: don't try to print error strings, where errno isn't set X-Git-Tag: v229~128^2~2 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=e09f605eec61afdf8d81208a3c1805915bb0a487;p=systemd%2F.git resolved: don't try to print error strings, where errno isn't set --- diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index b2e1e60a58..5640cd1d33 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -967,12 +967,12 @@ static int on_dns_packet(sd_event_source *s, int fd, uint32_t revents, void *use return 0; } if (r == 0) { - log_debug("Received inappropriate DNS packet as response, ignoring: %m"); + log_debug("Received inappropriate DNS packet as response, ignoring."); return 0; } if (DNS_PACKET_ID(p) != t->id) { - log_debug("Received packet with incorrect transaction ID, ignoring: %m"); + log_debug("Received packet with incorrect transaction ID, ignoring."); return 0; }