chiark / gitweb /
bash-completion: --property support
[elogind.git] / src / systemctl / systemctl.c
index 12dce3c00139171b801b1cf39256ea89d50dfcaf..2f43052f9af029187bcc7c0996008147bca653e4 100644 (file)
@@ -1178,7 +1178,7 @@ static void list_jobs_print(struct job_info* jobs, size_t n) {
 
                 for (i = 0, j = jobs; i < n; i++, j++) {
                         assert(j->name && j->type && j->state);
-                        l0 = MAX(l0, decimal_str_max(j->id));
+                        l0 = MAX(l0, DECIMAL_STR_WIDTH(j->id));
                         l1 = MAX(l1, strlen(j->name));
                         l2 = MAX(l2, strlen(j->type));
                         l3 = MAX(l3, strlen(j->state));
@@ -4494,7 +4494,7 @@ static int systemctl_help(void) {
                "     --fail           When queueing a new job, fail if conflicting jobs are\n"
                "                      pending\n"
                "     --irreversible   Create jobs which cannot be implicitly cancelled\n"
-               "     --show-types     When showing sockets, explictly show their type\n"
+               "     --show-types     When showing sockets, explicitly show their type\n"
                "     --ignore-dependencies\n"
                "                      When queueing a new job, ignore all its dependencies\n"
                "  -i --ignore-inhibitors\n"
@@ -4794,7 +4794,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
                                         continue;
                                 }
 
-                                log_error("Unkown unit type or load state '%s'.", type);
+                                log_error("Unknown unit type or load state '%s'.", type);
                                 log_info("Use -t help to see a list of allowed values.");
                                 return -EINVAL;
                         }