From f4fb21c1515ca882514620b2dee31ef4246be565 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 4 Jan 2012 15:35:59 +0100 Subject: systemctl: shortcut log output for non-service, non-socket, non-mount, non-swap units --- src/logs-show.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/logs-show.c') diff --git a/src/logs-show.c b/src/logs-show.c index e28fe8fa21..d44c50a291 100644 --- a/src/logs-show.c +++ b/src/logs-show.c @@ -350,6 +350,12 @@ int show_journal_by_service( assert(service); + if (!endswith(service, ".service") && + !endswith(service, ".socket") && + !endswith(service, ".mount") && + !endswith(service, ".swap")) + return 0; + if (n_columns <= 0) n_columns = columns(); -- cgit v1.2.3-54-g00ecf