summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-11-17 09:34:58 +0100
committerDaniel Mack <github@zonque.org>2015-11-17 09:34:58 +0100
commitf21bb7537ab7b6b871eac424f72b703851bf9f00 (patch)
treebaeafb11bfbc562dc1f85dd1cdc745e4310bd48d
parentbf7e619b3b2b97ff2a4952ab125c794c0d3bdb5f (diff)
parentbfcb7c5f5333f9c3523b7027c2ad4c99e4494fb5 (diff)
Merge pull request #1927 from evverx/no-entries-in-quiet-mode
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;
}
}