summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-07-24 12:04:30 +0200
committerDaniel Mack <github@zonque.org>2015-07-24 12:04:30 +0200
commit77b7f805099dbdd869b1846d30ffed56833941ff (patch)
treea2b3f1b5e2a650518b70856cc9809b415d7140d1 /src/journal/journalctl.c
parent7121b2152a69bc8e6ad9ea02804f92817468f8f1 (diff)
parente80acc51aeaf2d74cb4d6cecbcb6e18f74c22c05 (diff)
Merge pull request #695 from poettering/journal-fixes
Journal fixes
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 2d6ecfb750..073cc77711 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -2066,6 +2066,10 @@ int main(int argc, char *argv[]) {
log_error_errno(r, "Failed to iterate through journal: %m");
goto finish;
}
+ if (r == 0) {
+ printf("-- No entries --\n");
+ goto finish;
+ }
if (!arg_follow)
pager_open_if_enabled();