From: Lennart Poettering Date: Thu, 28 Oct 2021 14:42:22 +0000 (+0200) Subject: systemctl: use empty_to_root() where appropriate X-Git-Tag: v250-rc1~383^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27ba2ad2f6bc96a613a52d976ffc9cace1f4dddc;p=thirdparty%2Fsystemd.git systemctl: use empty_to_root() where appropriate --- diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 29f1f7fd328..c3a9ba763d6 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -2090,7 +2090,7 @@ static int show_system_status(sd_bus *bus) { FORMAT_TIMESTAMP_STYLE(mi.timestamp, arg_timestamp_style), FORMAT_TIMESTAMP_RELATIVE(mi.timestamp)); - printf(" CGroup: %s\n", mi.control_group ?: "/"); + printf(" CGroup: %s\n", empty_to_root(mi.control_group)); if (IN_SET(arg_transport, BUS_TRANSPORT_LOCAL, BUS_TRANSPORT_MACHINE)) {