From: Yu Watanabe Date: Sat, 2 Mar 2019 16:35:18 +0000 (+0900) Subject: systemctl: format IPIngressBytes= or friends nicely X-Git-Tag: v242-rc1~203^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56c6b690075e01fbeec6da748c0db484b3c3bd56;p=thirdparty%2Fsystemd.git systemctl: format IPIngressBytes= or friends nicely --- diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 90cddd7e04d..1911dd0ce64 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -800,6 +800,8 @@ static int bus_print_property(const char *name, const char *expected_value, sd_b (startswith(name, "DefaultLimit") && u == (uint64_t) -1)) bus_print_property_value(name, expected_value, value, "infinity"); + else if (STR_IN_SET(name, "IPIngressBytes", "IPIngressPackets", "IPEgressBytes", "IPEgressPackets") && u == (uint64_t) -1) + bus_print_property_value(name, expected_value, value, "[no data]"); else bus_print_property_valuef(name, expected_value, value, "%"PRIu64, u);