From: Zbyszek Szmek Date: Tue, 14 Sep 2010 23:54:15 +0000 (+0200) Subject: systemctl: split job list writing to a seperate function X-Git-Tag: v11~142 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9b2fcafba47200d72d987d33abbe172891b8af82;p=elogind.git systemctl: split job list writing to a seperate function On Tue, Sep 14, 2010 at 10:23:28PM +0200, Lennart Poettering wrote: > On Tue, 07.09.10 17:02, Zbigniew Jędrzejewski-Szmek (zbyszek@in.waw.pl) wrote: > > Urks, now I commited the wrong one... Can you prep an updated patch against > current git? Once more sorry about that. Fix below. Zbyszek --- diff --git a/src/systemctl.c b/src/systemctl.c index fa191abc1..e6f2c7c57 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -334,7 +334,7 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) { } } - if (!on_tty()) { + if (on_tty()) { printf("\nLOAD = Reflects whether the unit definition was properly loaded.\n" "ACTIVE = The high-level unit activation state, i.e. generalization of SUB.\n" "SUB = The low-level unit activation state, values depend on unit type.\n"