anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0351-journalctl-don-t-print-No-entries-in-quiet-mode.patch

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