From 0854344db527026c08e91cbffd90050ad5e9f92c Mon Sep 17 00:00:00 2001 From: Alexander Amelkin Date: Wed, 6 Nov 2019 15:14:47 +0300 Subject: chassis: bootdev: Fix help message and its formatting There was a wrong help message regarding the console redirection, and also the help formatting was a bit off. Straightened this all up. Signed-off-by: Alexander Amelkin --- lib/ipmi_chassis.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/ipmi_chassis.c') diff --git a/lib/ipmi_chassis.c b/lib/ipmi_chassis.c index 91230bf..4f93c41 100644 --- a/lib/ipmi_chassis.c +++ b/lib/ipmi_chassis.c @@ -1976,7 +1976,7 @@ ipmi_chassis_main(struct ipmi_intf * intf, int argc, char ** argv) BF3_OFFSET, BF3_SLEEP_LOCKOUT_MASK, BF3_SLEEP_LOCKOUT, - "Log Out Sleep Button" + "Lock out the Sleep button" }, { "cons_redirect=default", @@ -1999,8 +1999,8 @@ ipmi_chassis_main(struct ipmi_intf * intf, int argc, char ** argv) BF3_OFFSET, BF3_CONSOLE_REDIR_MASK, BF3_CONSOLE_REDIR_ENABLE, - "Suppress (skip) console " - "redirection if enabled" + "Request console redirection " + "be enabled" }, /* data 4 */ /* data4[7:4] reserved */ @@ -2035,9 +2035,11 @@ ipmi_chassis_main(struct ipmi_intf * intf, int argc, char ** argv) } if (optionError) { lprintf(LOG_NOTICE, "Legal options settings are:"); - lprintf(LOG_NOTICE, "\thelp:\tprint this message"); + lprintf(LOG_NOTICE, " %-22s: %s", + "help", + "print this message"); for (op = options; op->name; ++op) { - lprintf(LOG_NOTICE, "\t%s:\t%s", op->name, op->desc); + lprintf(LOG_NOTICE, " %-22s: %s", op->name, op->desc); } return (-1); } -- cgit v1.2.1