systemd-resolve: use plural "DNS Servers"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Jun 2016 17:51:30 +0000 (13:51 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 17 Jul 2016 23:58:02 +0000 (19:58 -0400)
Usually multiple DNS servers are configured, and it looks strange to have
singular in the heading.

src/resolve/resolve-tool.c

index 4e1e916..859dc19 100644 (file)
@@ -1229,8 +1229,8 @@ static int status_ifindex(sd_bus *bus, int ifindex, const char *name, bool *empt
                yes_no(link_info.dnssec_supported));
 
         STRV_FOREACH(i, link_info.dns) {
-                printf("          %s %s\n",
-                       i == link_info.dns ? "DNS Server:" : "           ",
+                printf("         %s %s\n",
+                       i == link_info.dns ? "DNS Servers:" : "            ",
                        *i);
         }
 
@@ -1412,8 +1412,8 @@ static int status_global(sd_bus *bus, bool *empty_line) {
 
         printf("%sGlobal%s\n", ansi_highlight(), ansi_normal());
         STRV_FOREACH(i, global_info.dns) {
-                printf("          %s %s\n",
-                       i == global_info.dns ? "DNS Server:" : "           ",
+                printf("         %s %s\n",
+                       i == global_info.dns ? "DNS Servers:" : "            ",
                        *i);
         }