]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: remove unnecessary link->ifname from debug log statements
authorMike Gilbert <floppym@gentoo.org>
Wed, 5 Feb 2020 16:04:50 +0000 (11:04 -0500)
committerChris Down <chris@chrisdown.name>
Thu, 6 Feb 2020 00:15:50 +0000 (00:15 +0000)
Since 98b0299479a68ffd414888368907fc776a46b82a, we log the interface
name automatically via log_link_debug().

Fixes: https://github.com/systemd/systemd/issues/14782
src/network/networkd-dhcp-server.c

index a6dbe2e596c3029a05f4154a44eb5dcf3ba5bc61..bee75a6930ea690479e9d06b5e4fed00d6ff5928 100644 (file)
@@ -45,7 +45,7 @@ static int link_push_uplink_dns_to_dhcp_server(Link *link, sd_dhcp_server *s) {
         size_t n_addresses = 0, n_allocated = 0;
         unsigned i;
 
-        log_link_debug(link, "Copying DNS server information from %s", link->ifname);
+        log_link_debug(link, "Copying DNS server information from link");
 
         if (!link->network)
                 return 0;
@@ -99,7 +99,7 @@ static int link_push_uplink_ntp_to_dhcp_server(Link *link, sd_dhcp_server *s) {
         if (!link->network)
                 return 0;
 
-        log_link_debug(link, "Copying NTP server information from %s", link->ifname);
+        log_link_debug(link, "Copying NTP server information from link");
 
         STRV_FOREACH(a, link->network->ntp) {
                 union in_addr_union ia;
@@ -148,7 +148,7 @@ static int link_push_uplink_sip_to_dhcp_server(Link *link, sd_dhcp_server *s) {
         if (!link->network)
                 return 0;
 
-        log_link_debug(link, "Copying SIP server information from %s", link->ifname);
+        log_link_debug(link, "Copying SIP server information from link");
 
         STRV_FOREACH(a, link->network->sip) {
                 union in_addr_union ia;