naccyde / rpms / systemd

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