diff options
author | Mirco Tischler <mt-ml@gmx.de> | 2013-02-04 15:13:24 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-07 01:02:34 -0500 |
commit | a4b88c1ecb2a787d44ba1a46336aa187f60293b5 (patch) | |
tree | 25e789902f5ac72aa38aea6491835d112f75862c | |
parent | f9045468945cd06fad84f9fbf44019c6813fc50a (diff) |
logs-show: show messages for all unit types in systemctl status
I can't find a reason why we shouldn't try to output messages for other
unit types than .service, .socket, .mount and .swap as well. It's probably
a leftover from before we started logging UNIT= from inside PID 1.
-rw-r--r-- | src/shared/logs-show.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index 7dacccf6af..b909c24e98 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -886,12 +886,6 @@ int show_journal_by_unit( assert(mode < _OUTPUT_MODE_MAX); assert(unit); - if (!endswith(unit, ".service") && - !endswith(unit, ".socket") && - !endswith(unit, ".mount") && - !endswith(unit, ".swap")) - return 0; - if (how_many <= 0) return 0; @@ -962,11 +956,6 @@ int show_journal_by_user_unit( assert(mode < _OUTPUT_MODE_MAX); assert(unit); - if (!endswith(unit, ".service") && - !endswith(unit, ".socket")) - - return 0; - if (how_many <= 0) return 0; |