diff options
author | Daniel Mack <github@zonque.org> | 2015-08-31 13:58:29 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-31 13:58:29 +0200 |
commit | d728d7faa6c60f185be72510d87bcc565bc0846a (patch) | |
tree | 4d2ed7404804998cbc10abf0419fac34719c57be /src/cgls/cgls.c | |
parent | abab50081c8c12cc46482a43264deb46853bb8fa (diff) | |
parent | dcd719908229479b0b6ec14d6c1362eb82b1bbf3 (diff) |
Merge pull request #1093 from poettering/unified-prepare
A variety of clean-ups
Diffstat (limited to 'src/cgls/cgls.c')
-rw-r--r-- | src/cgls/cgls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c index fae9398aa5..a8d910d532 100644 --- a/src/cgls/cgls.c +++ b/src/cgls/cgls.c @@ -160,7 +160,7 @@ static int get_cgroup_root(char **ret) { &error, ret); if (r < 0) - return log_error_errno(r, "Failed to query unit control group path: %m"); + return log_error_errno(r, "Failed to query unit control group path: %s", bus_error_message(&error, r)); return 0; } @@ -263,7 +263,7 @@ int main(int argc, char *argv[]) { if (r < 0) goto finish; - printf("Control group %s:\n", root); + printf("Control group %s:\n", isempty(root) ? "/" : root); fflush(stdout); r = show_cgroup(SYSTEMD_CGROUP_CONTROLLER, root, NULL, 0, arg_kernel_threads, output_flags); |