diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-04-11 14:16:51 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-04-13 17:51:59 +0900 |
commit | 603192b2e8b94a249ba29942281c691231afcbdc (patch) | |
tree | 8ccf2229e1e6f4469b1c084ab58d97ef07424974 /src/resolve | |
parent | 6ff79f7640273b6efc5c2e15e1c19bca2c5dda23 (diff) | |
download | systemd-603192b2e8b94a249ba29942281c691231afcbdc.tar.gz |
resolve: use log_link_*() macro
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-link.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c index 8c5bd5bfb1..7c8d23d2f8 100644 --- a/src/resolve/resolved-link.c +++ b/src/resolve/resolved-link.c @@ -9,6 +9,7 @@ #include "env-file.h" #include "fd-util.h" #include "fileio.h" +#include "log-link.h" #include "mkdir.h" #include "parse-util.h" #include "resolved-link.h" @@ -597,7 +598,7 @@ static void link_read_settings(Link *l) { r = link_is_managed(l); if (r < 0) { - log_warning_errno(r, "Failed to determine whether interface %s is managed: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to determine whether the interface is managed: %m"); return; } if (r == 0) { @@ -614,35 +615,35 @@ static void link_read_settings(Link *l) { r = link_update_dns_servers(l); if (r < 0) - log_warning_errno(r, "Failed to read DNS servers for interface %s, ignoring: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to read DNS servers for the interface, ignoring: %m"); r = link_update_llmnr_support(l); if (r < 0) - log_warning_errno(r, "Failed to read LLMNR support for interface %s, ignoring: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to read LLMNR support for the interface, ignoring: %m"); r = link_update_mdns_support(l); if (r < 0) - log_warning_errno(r, "Failed to read mDNS support for interface %s, ignoring: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to read mDNS support for the interface, ignoring: %m"); r = link_update_dns_over_tls_mode(l); if (r < 0) - log_warning_errno(r, "Failed to read DNS-over-TLS mode for interface %s, ignoring: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to read DNS-over-TLS mode for the interface, ignoring: %m"); r = link_update_dnssec_mode(l); if (r < 0) - log_warning_errno(r, "Failed to read DNSSEC mode for interface %s, ignoring: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to read DNSSEC mode for the interface, ignoring: %m"); r = link_update_dnssec_negative_trust_anchors(l); if (r < 0) - log_warning_errno(r, "Failed to read DNSSEC negative trust anchors for interface %s, ignoring: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to read DNSSEC negative trust anchors for the interface, ignoring: %m"); r = link_update_search_domains(l); if (r < 0) - log_warning_errno(r, "Failed to read search domains for interface %s, ignoring: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to read search domains for the interface, ignoring: %m"); r = link_update_default_route(l); if (r < 0) - log_warning_errno(r, "Failed to read default route setting for interface %s, proceeding anyway: %m", l->ifname); + log_link_warning_errno(l, r, "Failed to read default route setting for the interface, proceeding anyway: %m"); } int link_update(Link *l) { |