]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
uclampset: cleanup --hel output
authorKarel Zak <kzak@redhat.com>
Tue, 2 Feb 2021 11:40:39 +0000 (12:40 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Feb 2021 15:54:22 +0000 (16:54 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/uclampset.c

index 846a4c56a2bd363855ee47e5420686164aa18ac7..b6a4234542c7b188a507273bf2b1ae00a9b6ff44 100644 (file)
@@ -51,28 +51,30 @@ static void __attribute__((__noreturn__)) usage(void)
 {
        FILE *out = stdout;
 
+       fputs(USAGE_HEADER, out);
        fprintf(out,
                _(" %1$s [options]\n"
                  " %1$s [options] --pid <pid> | --system | <command> <arg>...\n"),
                program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, out);
-       fputs(_("Show or change the utilization clamping attributes of a process or the system.\n"), out);
-       fputs(_("Utilization range: [0:1024]\n"), out);
-       fputs(_("Use special -1 value to reset to system's default\n"), out);
+       fputs(_("Show or change the utilization clamping attributes.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       fputs(_(" -m                   util_min value to set\n"), out);
-       fputs(_(" -M                   util_max value to set\n"), out);
+       fputs(_(" -m <value>           util_min value to set\n"), out);
+       fputs(_(" -M <value>           util_max value to set\n"), out);
        fputs(_(" -a, --all-tasks      operate on all the tasks (threads) for a given pid\n"), out);
-       fputs(_(" -p, --pid            operate on existing given pid\n"), out);
+       fputs(_(" -p, --pid <pid>      operate on existing given pid\n"), out);
        fputs(_(" -s, --system         operate on system\n"), out);
        fputs(_(" -R, --reset-on-fork  set reset-on-fork flag\n"), out);
        fputs(_(" -v, --verbose        display status information\n"), out);
 
-       fputs(USAGE_SEPARATOR, out);
        printf(USAGE_HELP_OPTIONS(22));
 
+       fputs(USAGE_SEPARATOR, out);
+       fputs(_("Utilization value range is [0:1024]. Use special -1 value to "
+               "reset to system's default.\n"), out);
+
        printf(USAGE_MAN_TAIL("uclampset(1)"));
        exit(EXIT_SUCCESS);
 }