chiark / gitweb /
cgroup: add cgroup_bonding_to_string() call
[elogind.git] / systemctl.vala
index 4f017e02e7a0a82baca3ceec6596556a5ca6373c..8f16b90482241ece7947281fbb5c500c8e4bbb65 100644 (file)
@@ -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,10 +114,10 @@ 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);
+                                        stdout.printf(" → %-15s", i.job_type);
 
                                 stdout.puts("\n");
                                 n++;
@@ -222,7 +222,9 @@ int main (string[] args) {
                         MainLoop l = new MainLoop();
                         l.run();
 
-                } else {
+                } else if (args[1] == "dump")
+                        stdout.puts(manager.dump());
+                else {
                         stderr.printf("Unknown command %s.\n", args[1]);
                         return 1;
                 }