]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolvectl: remove duplicate ':' from output
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Jan 2023 16:34:18 +0000 (17:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Jan 2023 20:44:11 +0000 (21:44 +0100)
The second argument to dump_list() actually ends up in a TABLE_FIELD
cell now, where we implicitly append a ":". Hence drop it from the
strings.

Follow-up for: 37a50123fac050c7ccde4afcf3f37ee77aad012c

src/resolve/resolvectl.c

index 682fe87ba92a4b444c82dd6c614dd31fb0932120..505be230513364dcae1056a1dddf179ce197406f 100644 (file)
@@ -1946,15 +1946,15 @@ static int status_global(sd_bus *bus, StatusMode mode, bool *empty_line) {
                         return table_log_add_error(r);
         }
 
-        r = dump_list(table, "DNS Servers:", global_info.dns_ex ?: global_info.dns);
+        r = dump_list(table, "DNS Servers", global_info.dns_ex ?: global_info.dns);
         if (r < 0)
                 return r;
 
-        r = dump_list(table, "Fallback DNS Servers:", global_info.fallback_dns_ex ?: global_info.fallback_dns);
+        r = dump_list(table, "Fallback DNS Servers", global_info.fallback_dns_ex ?: global_info.fallback_dns);
         if (r < 0)
                 return r;
 
-        r = dump_list(table, "DNS Domain:", global_info.domains);
+        r = dump_list(table, "DNS Domain", global_info.domains);
         if (r < 0)
                 return r;