From 223a502b02087bf65b32cf6c896149e0aa1f4404 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 5 Aug 2025 11:24:41 +0200 Subject: [PATCH] chrt: (man,usage) mark the priority value as optional in the synopses The priority value is optional in some cases, so it cannot be listed as required. CC: Madadi Vineeth Reddy Signed-off-by: Benno Schulenberg --- schedutils/chrt.1.adoc | 2 +- schedutils/chrt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schedutils/chrt.1.adoc b/schedutils/chrt.1.adoc index 3f67b13bb..c8278463a 100644 --- a/schedutils/chrt.1.adoc +++ b/schedutils/chrt.1.adoc @@ -38,7 +38,7 @@ chrt - manipulate the real-time attributes of a process == SYNOPSIS -*chrt* [options] _priority command_ [_argument_...] +*chrt* [options] [_priority_] _command_ [_argument_...] *chrt* [options] *--pid* [_priority_] _PID_ diff --git a/schedutils/chrt.c b/schedutils/chrt.c index e07284e41..de1898160 100644 --- a/schedutils/chrt.c +++ b/schedutils/chrt.c @@ -60,8 +60,8 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_("Show or change the real-time scheduling attributes of a process.\n"), out); fputs(USAGE_SEPARATOR, out); fputs(_("Set policy:\n" - " chrt [options] [...]\n" - " chrt [options] --pid \n"), out); + " chrt [options] [] [...]\n" + " chrt [options] --pid [] \n"), out); fputs(USAGE_SEPARATOR, out); fputs(_("Get policy:\n" " chrt --pid \n"), out); -- 2.47.3