diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-13 20:59:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-13 20:59:01 +0200 |
commit | 10a94420172b33a7472a16b2e829689dbc570cad (patch) | |
tree | 5499d906a3d812ab936d16faceaf1741bd6d0c2f /systemctl.vala | |
parent | c27488016e0e90569260bc513fa95acbad512ff5 (diff) |
systemctl: show sub state along active state
Diffstat (limited to 'systemctl.vala')
-rw-r--r-- | systemctl.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/systemctl.vala b/systemctl.vala index 6c01ad1263..8f16b90482 100644 --- a/systemctl.vala +++ b/systemctl.vala @@ -104,7 +104,7 @@ int main (string[] args) { uint n = 0; Posix.qsort(list, list.length, sizeof(Manager.UnitInfo), unit_info_compare); - stdout.printf("%-45s %-6s %-12s %-17s\n", "UNIT", "LOAD", "ACTIVE", "JOB"); + stdout.printf("%-45s %-6s %-12s %-12s %-17s\n", "UNIT", "LOAD", "ACTIVE", "SUB", "JOB"); foreach (var i in list) { @@ -114,7 +114,7 @@ int main (string[] args) { if (!all && i.active_state == "inactive") continue; - stdout.printf("%-45s %-6s %-12s", i.id, i.load_state, i.active_state); + stdout.printf("%-45s %-6s %-12s %-12s", i.id, i.load_state, i.active_state, i.sub_state); if (i.job_id != 0) stdout.printf(" → %-15s", i.job_type); |