From: Karel Zak Date: Tue, 2 Feb 2021 11:40:39 +0000 (+0100) Subject: uclampset: cleanup --hel output X-Git-Tag: v2.37-rc1~144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4b07719ee74f7d01b09255f6ebacde1d33cd48b;p=thirdparty%2Futil-linux.git uclampset: cleanup --hel output Signed-off-by: Karel Zak --- diff --git a/schedutils/uclampset.c b/schedutils/uclampset.c index 846a4c56a2..b6a4234542 100644 --- a/schedutils/uclampset.c +++ b/schedutils/uclampset.c @@ -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 | --system | ...\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 util_min value to set\n"), out); + fputs(_(" -M 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 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); }