Merge pull request #1189 from theyoyojo/fixes_1188

kpatch: Sync signal subcmd usage output with manpage
This commit is contained in:
Joe Lawrence 2021-06-08 11:29:08 -04:00 committed by GitHub
commit 6d90e31172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ MAX_LOAD_ATTEMPTS=5
RETRY_INTERVAL=2
usage_cmd() {
printf ' %-20s\n %s\n' "$1" "$2" >&2
printf ' %-20s\n%s\n' "$1" "$(fmt -w 80 <(echo " $2"))" >&2
}
usage () {
@ -57,7 +57,7 @@ usage () {
echo >&2
usage_cmd "list" "list installed patch modules"
echo >&2
usage_cmd "signal" "signal/poke any process stalling the current patch transition"
usage_cmd "signal" "signal/poke any process stalling the current patch transition. This is only useful on systems that have the sysfs livepatch signal interface. On other systems, the signaling should be done automatically by the OS and this subcommand is a no-op."
echo >&2
usage_cmd "version" "display the kpatch version"
exit 1