]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: fix indentation of cgroup tree
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Nov 2019 13:52:30 +0000 (14:52 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Nov 2019 17:34:53 +0000 (18:34 +0100)
Follow-up for 0d588deae21234c9a9d64d9eddbcbe7da5c9a39d.

In that commit the output got moved a 2 chars to the right, hence make
sure to also shift the cgroup tree to the right, so that it gets
properly aligned under the cgroup path again.

src/systemctl/systemctl.c

index 07357c6edc8c1eef15df09029155c58521c91ce9..619969c3da032be0646342c752fd1a418f762fbb 100644 (file)
@@ -4576,7 +4576,7 @@ static void print_status_info(
 
         if (i->control_group) {
                 _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
-                static const char prefix[] = "           ";
+                static const char prefix[] = "             ";
                 unsigned c;
 
                 printf("     CGroup: %s\n", i->control_group);