From f4b07719ee74f7d01b09255f6ebacde1d33cd48b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 2 Feb 2021 12:40:39 +0100 Subject: [PATCH] uclampset: cleanup --hel output Signed-off-by: Karel Zak --- schedutils/uclampset.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/schedutils/uclampset.c b/schedutils/uclampset.c index 846a4c56a..b6a423454 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); }