diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-04 04:00:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-04 04:00:14 +0100 |
commit | 6f003b43043da7b57c0ebe15b86856c8248fea4a (patch) | |
tree | a175d63a75747b6a1bb4ae5dc5bc32e606940b1e /src/systemctl.c | |
parent | cf5eb6a110c39b36dd07457180b749f32488bcf5 (diff) |
journalctl: fix counting of -n parameter
Diffstat (limited to 'src/systemctl.c')
-rw-r--r-- | src/systemctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index 10e3991745..6f87b06dd3 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -2262,8 +2262,10 @@ static void print_status_info(UnitStatusInfo *i) { } } - if (i->id && arg_transport != TRANSPORT_SSH) + if (i->id && arg_transport != TRANSPORT_SSH) { + printf("\n"); show_journal_by_service(i->id, OUTPUT_SHORT, NULL, 0, 0, 0, arg_all); + } if (i->need_daemon_reload) printf("\n%sWarning:%s Unit file changed on disk, 'systemctl %s daemon-reload' recommended.\n", |