summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-13 03:58:03 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-13 04:17:37 +0100
commitea6c2dd1f819c3d481fc590849809aeb552c1d48 (patch)
tree0af9968a0317503e9ea703ddf02e96a8defb8607 /src/systemctl
parent15ef11449b31e2fc91f2172c8afedb20ecad5ae9 (diff)
systemctl: suppress duplicate newline if there's not log output in "systemctl status"
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 3cb10964fd..21bf51bb3e 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -3226,7 +3226,6 @@ static void print_status_info(
}
if (i->id && arg_transport == BUS_TRANSPORT_LOCAL) {
- printf("\n");
show_journal_by_unit(stdout,
i->id,
arg_output,
@@ -3234,7 +3233,7 @@ static void print_status_info(
i->inactive_exit_timestamp_monotonic,
arg_lines,
getuid(),
- flags,
+ flags | OUTPUT_BEGIN_NEWLINE,
arg_scope == UNIT_FILE_SYSTEM,
ellipsized);
}