]> err.no Git - systemd/commitdiff
systemctl: split job list writing to a seperate function
authorZbyszek Szmek <zbyszek@in.waw.pl>
Tue, 14 Sep 2010 23:54:15 +0000 (01:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Sep 2010 01:05:02 +0000 (03:05 +0200)
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

src/systemctl.c

index fa191abc1743b645e223fdc552759d2efb836d9c..e6f2c7c57c783ce1c728805030753c3ddf7153d9 100644 (file)
@@ -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"