From: Lennart Poettering Date: Wed, 4 Jan 2012 14:35:59 +0000 (+0100) Subject: systemctl: shortcut log output for non-service, non-socket, non-mount, non-swap units X-Git-Tag: v38~75 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4fb21c1515ca882514620b2dee31ef4246be565;p=systemd systemctl: shortcut log output for non-service, non-socket, non-mount, non-swap units --- diff --git a/src/logs-show.c b/src/logs-show.c index e28fe8fa..d44c50a2 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();