summaryrefslogtreecommitdiffstats
path: root/src/cgls
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-09-26 19:57:58 +0200
committerLennart Poettering <lennart@poettering.net>2013-09-26 20:20:30 +0200
commitbaa89da40a1d42242c9c62603501ada7e9e52613 (patch)
tree12578bcc99d29522614a16e03b4daaf625d52bf0 /src/cgls
parentMove part of logind.c into a separate file (diff)
downloadsystemd-baa89da40a1d42242c9c62603501ada7e9e52613.tar.xz
systemd-baa89da40a1d42242c9c62603501ada7e9e52613.zip
cgroup: when referencing cgroup controller trees allow omission of the path
Diffstat (limited to 'src/cgls')
-rw-r--r--src/cgls/cgls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c
index c3229ad2d3..c689b5c471 100644
--- a/src/cgls/cgls.c
+++ b/src/cgls/cgls.c
@@ -156,7 +156,9 @@ int main(int argc, char *argv[]) {
for (i = optind; i < argc; i++) {
int q;
- printf("%s:\n", argv[i]);
+
+ fprintf(stdout, "%s:\n", argv[i]);
+ fflush(stdout);
if (arg_machine)
root = strjoin("machine/", arg_machine, "/", argv[i], NULL);