summaryrefslogtreecommitdiff
path: root/lib/ipmi_user.c
diff options
context:
space:
mode:
authorZdenek Styblik <stybla@turnovfree.net>2014-12-19 09:57:49 +0100
committerZdenek Styblik <stybla@turnovfree.net>2014-12-19 09:57:49 +0100
commit1d1ce49bf42497a0be3e7cc8be560f1448751383 (patch)
tree4c1d5c24322f1c18455b2131262f4458fd3b8579 /lib/ipmi_user.c
parent50bd7d01a81ae82626281c470169544e86c360ce (diff)
downloadipmitool-1d1ce49bf42497a0be3e7cc8be560f1448751383.tar.gz
Fix 'user help' output
Commit fixes padding of 'user help' output. Also, list of expected values of privilege leves have been added.
Diffstat (limited to 'lib/ipmi_user.c')
-rw-r--r--lib/ipmi_user.c42
1 files changed, 33 insertions, 9 deletions
diff --git a/lib/ipmi_user.c b/lib/ipmi_user.c
index fbe6d4c..aa6b44a 100644
--- a/lib/ipmi_user.c
+++ b/lib/ipmi_user.c
@@ -487,16 +487,40 @@ ipmi_user_test_password(
static void
print_user_usage(void)
{
- lprintf(LOG_NOTICE, "User Commands:");
- lprintf(LOG_NOTICE, " summary [<channel number>]");
- lprintf(LOG_NOTICE, " list [<channel number>]");
- lprintf(LOG_NOTICE, " set name <user id> <username>");
- lprintf(LOG_NOTICE, " set password <user id> [<password>]");
- lprintf(LOG_NOTICE, " disable <user id>");
- lprintf(LOG_NOTICE, " enable <user id>");
lprintf(LOG_NOTICE,
- " priv <user id> <privilege level> [<channel number>]");
- lprintf(LOG_NOTICE, " test <user id> <16|20> [<password]>\n");
+"User Commands:");
+ lprintf(LOG_NOTICE,
+" summary [<channel number>]");
+ lprintf(LOG_NOTICE,
+" list [<channel number>]");
+ lprintf(LOG_NOTICE,
+" set name <user id> <username>");
+ lprintf(LOG_NOTICE,
+" set password <user id> [<password>]");
+ lprintf(LOG_NOTICE,
+" disable <user id>");
+ lprintf(LOG_NOTICE,
+" enable <user id>");
+ lprintf(LOG_NOTICE,
+" priv <user id> <privilege level> [<channel number>]");
+ lprintf(LOG_NOTICE,
+" Privilege levels:");
+ lprintf(LOG_NOTICE,
+" * 0x1 - Callback");
+ lprintf(LOG_NOTICE,
+" * 0x2 - User");
+ lprintf(LOG_NOTICE,
+" * 0x3 - Operator");
+ lprintf(LOG_NOTICE,
+" * 0x4 - Administrator");
+ lprintf(LOG_NOTICE,
+" * 0x5 - OEM Proprietary");
+ lprintf(LOG_NOTICE,
+" * 0xF - No Access");
+ lprintf(LOG_NOTICE, "");
+ lprintf(LOG_NOTICE,
+" test <user id> <16|20> [<password]>");
+ lprintf(LOG_NOTICE, "");
}