diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-11-23 22:18:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 22:18:28 +0100 |
commit | e3650d619a10c12978092d7f87796ab2f6e99930 (patch) | |
tree | 0e5acfee94433929eb2da53195fa9e018df06e35 /src/resolve | |
parent | 499f0f8209f33da0b6e3b0d6f3a13996edcc7555 (diff) | |
parent | e23baae0da880453e6a0cb0dc9f3f642ca428751 (diff) | |
download | systemd-e3650d619a10c12978092d7f87796ab2f6e99930.tar.gz |
Merge pull request #17676 from yuwata/lgtm-fixes
tree-wide: several fixes prompted by LGTM
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolvectl.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c index 48926f6885..b479335769 100644 --- a/src/resolve/resolvectl.c +++ b/src/resolve/resolvectl.c @@ -145,13 +145,12 @@ static void print_source(uint64_t flags, usec_t rtt) { printf("\n%s-- Information acquired via", ansi_grey()); - if (flags != 0) - printf(" protocol%s%s%s%s%s", - flags & SD_RESOLVED_DNS ? " DNS" :"", - flags & SD_RESOLVED_LLMNR_IPV4 ? " LLMNR/IPv4" : "", - flags & SD_RESOLVED_LLMNR_IPV6 ? " LLMNR/IPv6" : "", - flags & SD_RESOLVED_MDNS_IPV4 ? " mDNS/IPv4" : "", - flags & SD_RESOLVED_MDNS_IPV6 ? " mDNS/IPv6" : ""); + printf(" protocol%s%s%s%s%s", + flags & SD_RESOLVED_DNS ? " DNS" :"", + flags & SD_RESOLVED_LLMNR_IPV4 ? " LLMNR/IPv4" : "", + flags & SD_RESOLVED_LLMNR_IPV6 ? " LLMNR/IPv6" : "", + flags & SD_RESOLVED_MDNS_IPV4 ? " mDNS/IPv4" : "", + flags & SD_RESOLVED_MDNS_IPV6 ? " mDNS/IPv6" : ""); assert_se(format_timespan(rtt_str, sizeof(rtt_str), rtt, 100)); |