[systemd-devel] [PATCH 2/4 corrected] systemctl: split job list writing to a seperate function

Zbyszek Szmek zbyszek at in.waw.pl
Tue Sep 14 16:54:15 PDT 2010


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 at 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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/systemctl.c b/src/systemctl.c
index fa191ab..e6f2c7c 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"
-- 
1.7.2.3




-
Zbyszek


More information about the systemd-devel mailing list