summaryrefslogtreecommitdiffstats
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-16 13:32:51 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-16 14:29:04 +0200
commit4252171a94a0c7cb8f9ee180977465dc4fc0ec8e (patch)
treef78e1b0be44fc63fa91ad93d531f65ddd896f75b /src/network/networkctl.c
parentpid1: split out another helper func for two similar code paths (diff)
downloadsystemd-4252171a94a0c7cb8f9ee180977465dc4fc0ec8e.tar.xz
systemd-4252171a94a0c7cb8f9ee180977465dc4fc0ec8e.zip
tree-wide: use lowercase table headers
https://github.com/systemd/systemd/pull/13062#discussion_r303847484 > the formatter uppercases them anyway, and this way the JSON output of the > formatter is nicer as it uses the table header fields 1:1 for the json > output.
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r--src/network/networkctl.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 9d755c96d6..5f74f7b5cc 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -324,7 +324,7 @@ static int list_links(int argc, char *argv[], void *userdata) {
(void) pager_open(arg_pager_flags);
- table = table_new("IDX", "LINK", "TYPE", "OPERATIONAL", "SETUP");
+ table = table_new("idx", "link", "type", "operational", "setup");
if (!table)
return log_oom();
@@ -658,7 +658,7 @@ static int dump_address_labels(sd_netlink *rtnl) {
if (r < 0)
return r;
- table = table_new("Label", "Prefix/Prefixlen");
+ table = table_new("label", "prefix/prefixlen");
if (!table)
return -ENOMEM;
@@ -972,7 +972,7 @@ static int link_status_one(
(void) sd_network_link_get_carrier_bound_to(info->ifindex, &carrier_bound_to);
(void) sd_network_link_get_carrier_bound_by(info->ifindex, &carrier_bound_by);
- table = table_new("DOT", "KEY", "VALUE");
+ table = table_new("dot", "key", "value");
if (!table)
return -ENOMEM;
@@ -1274,7 +1274,7 @@ static int system_status(sd_netlink *rtnl, sd_hwdb *hwdb) {
(void) sd_network_get_operational_state(&operational_state);
operational_state_to_color(operational_state, &on_color_operational, &off_color_operational);
- table = table_new("DOT", "KEY", "VALUE");
+ table = table_new("dot", "key", "value");
if (!table)
return -ENOMEM;
@@ -1439,12 +1439,12 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
(void) pager_open(arg_pager_flags);
- table = table_new("LINK",
- "CHASSIS ID",
- "SYSTEM NAME",
- "CAPS",
- "PORT ID",
- "PORT DESCRIPTION");
+ table = table_new("link",
+ "chassis id",
+ "system name",
+ "caps",
+ "port id",
+ "port description");
if (!table)
return -ENOMEM;