summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-11-17 06:06:52 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2015-11-17 06:07:18 +0000
commitbfcb7c5f5333f9c3523b7027c2ad4c99e4494fb5 (patch)
tree7e884e33206f06aff2b84cee8853f8bdd833bd90
parentf1f8a5a5e110f485257e8702ad30b9997e529a74 (diff)
journalctl: don't print -- No entries -- in quiet mode
-rw-r--r--src/journal/journalctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 75a48c761c..d9a8063d31 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -2247,7 +2247,8 @@ int main(int argc, char *argv[]) {
if (arg_follow)
need_seek = true;
else {
- printf("-- No entries --\n");
+ if (!arg_quiet)
+ printf("-- No entries --\n");
goto finish;
}
}