network DHCP4: Don't mislead the logs.
authorSusant Sahani <ssahani@vmware.com>
Mon, 16 Sep 2019 18:46:39 +0000 (20:46 +0200)
committerMichael Biebl <biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)
The debug log making sense to the end user as an error.

(cherry picked from commit 61cda4d7964ff00dfa6260f84219720d9b97671a)
(cherry picked from commit 91db81e4dda8d322a4a771fc4f173ce2f147dc88)

Gbp-Pq: Name network-DHCP4-Dont-mislead-the-logs.patch

src/network/networkd-dhcp4.c

index 662770b50e30cac992856bd951476da8c0df2f73..c5644f844b805e585c7ab386286beb80a36e63fe 100644 (file)
@@ -198,7 +198,7 @@ static int link_set_dhcp_routes(Link *link) {
         if (n == -ENODATA)
                 log_link_debug_errno(link, n, "DHCP: No routes received from DHCP server: %m");
         else if (n < 0)
-                log_link_debug_errno(link, n, "DHCP error: could not get routes: %m");
+                log_link_debug_errno(link, n, "DHCP: could not get routes: %m");
 
         for (i = 0; i < n; i++) {
                 switch (sd_dhcp_route_get_option(static_routes[i])) {