systemctl: use empty_to_root() where appropriate

This commit is contained in:
Lennart Poettering
2021-10-28 16:42:22 +02:00
parent 5e1b4929f5
commit 27ba2ad2f6

View File

@@ -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)) {