diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-31 10:56:45 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-01 03:24:08 +0200 |
commit | 90e29fe1a5ceec8edd4a106332c05ca81fe1350e (patch) | |
tree | 366fa2eb8806151d24f32a1ac1d6636897285213 /src/network/networkctl.c | |
parent | dbus-execute: make transfer of CPUAffinity endian safe (#12711) (diff) | |
download | systemd-90e29fe1a5ceec8edd4a106332c05ca81fe1350e.tar.xz systemd-90e29fe1a5ceec8edd4a106332c05ca81fe1350e.zip |
networkctl: shorten Minimum/Maximum to min/max
This makes the output slightly "lighter" visually. min/max are well-established
forms, so there's no risk of misunderstanding. Also, not using title-case looks
a bit better.
Follow-up for c06ff86e25db4fdb4e962baf812ed28d8d0c1050.
$ build/networkctl status '*'|grep MTU
MTU: 65536
MTU: 1500 (min: 68, max: 9000)
MTU: 1500 (max: 2048)
MTU: 1500 (min: 256, max: 2304)
MTU: 1500 (min: 68, max: 65535)
MTU: 1500 (min: 68, max: 65521)
MTU: 1500 (min: 68, max: 65535)
MTU: 1500 (max: 65535)
MTU: 1360 (min: 68, max: 65535)
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index e769baa804..b924247af7 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -997,10 +997,10 @@ static int link_status_one( r = table_add_cell_stringf(table, NULL, "%" PRIu32 "%s%s%s%s%s%s%s", info->mtu, info->min_mtu > 0 || info->max_mtu > 0 ? " (" : "", - info->min_mtu > 0 ? "Minimum: " : "", + info->min_mtu > 0 ? "min: " : "", info->min_mtu > 0 ? min_str : "", info->min_mtu > 0 && info->max_mtu > 0 ? ", " : "", - info->max_mtu > 0 ? "Maximum: " : "", + info->max_mtu > 0 ? "max: " : "", info->max_mtu > 0 ? max_str : "", info->min_mtu > 0 || info->max_mtu > 0 ? ")" : ""); if (r < 0) |