diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-11-15 11:39:23 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-11-15 11:39:23 +0100 |
commit | 48c2826b4ea686cd69e489f9c6fe2d9ddebb6a69 (patch) | |
tree | 14f504dc41b20bfccf9f89fae18777ecb721fa0e /src/systemctl | |
parent | d025f1e4dca8fc1436aff76f9e6185fe3e728daa (diff) |
systemctl: remove empty line in case of no units
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index b82c79435d..39f4e6c509 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -426,6 +426,7 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) { "SUB = The low-level unit activation state, values depend on unit type.\n"); if (job_count) printf("JOB = Pending job for the unit.\n"); + puts(""); on = ansi_highlight(true); off = ansi_highlight(false); } else { @@ -434,11 +435,11 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) { } if (arg_all) - printf("\n%s%u loaded units listed.%s\n" + printf("%s%u loaded units listed.%s\n" "To show all installed unit files use 'systemctl list-unit-files'.\n", on, n_shown, off); else - printf("\n%s%u loaded units listed.%s Pass --all to see loaded but inactive units, too.\n" + printf("%s%u loaded units listed.%s Pass --all to see loaded but inactive units, too.\n" "To show all installed unit files use 'systemctl list-unit-files'.\n", on, n_shown, off); } |