ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
803fb7
From 13f24902c7c1ba91d41bf4e8dd694cf01f876938 Mon Sep 17 00:00:00 2001
803fb7
From: Evgeny Vereshchagin <evvers@ya.ru>
803fb7
Date: Tue, 17 Nov 2015 06:06:52 +0000
803fb7
Subject: [PATCH] journalctl: don't print -- No entries -- in quiet mode
803fb7
803fb7
Cherry-picked from: bfcb7c5f5333f9c3523b7027c2ad4c99e4494fb5
803fb7
Related: #1350232
803fb7
---
803fb7
 src/journal/journalctl.c | 3 ++-
803fb7
 1 file changed, 2 insertions(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
803fb7
index 2688d8b2e..a38ce4b8f 100644
803fb7
--- a/src/journal/journalctl.c
803fb7
+++ b/src/journal/journalctl.c
803fb7
@@ -2145,7 +2145,8 @@ int main(int argc, char *argv[]) {
803fb7
                 if (arg_follow)
803fb7
                         need_seek = true;
803fb7
                 else {
803fb7
-                        printf("-- No entries --\n");
803fb7
+                        if (!arg_quiet)
803fb7
+                                printf("-- No entries --\n");
803fb7
                         return EXIT_SUCCESS;
803fb7
                 }
803fb7
         }