Fix 'user help' output

Commit fixes padding of 'user help' output. Also, list of expected values of
privilege leves have been added.
This commit is contained in:
Zdenek Styblik 2014-12-19 09:57:49 +01:00
parent 50bd7d01a8
commit 1d1ce49bf4

View File

@ -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,
"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");
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, "");
}