shorten long console command names

The EC code expects console commands to be no longer than 14
characters, otherwise the alignment of the help command output breaks.

This patch replaces flash_spi_sel_lock with flash_spi_lock and
fake_disconnect with fakedisconnect to make sure the command names
fit.

BRANCH=none
BUG=none
TEST=the 'help' command output is not misaligned any more

Change-Id: Ia65f1535850a07adccbef0812c8a0922c0264cea
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/345570
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Mulin Chao <mlchao@nuvoton.com>
This commit is contained in:
Vadim Bendebury
2016-05-17 14:41:59 -07:00
committed by chrome-bot
parent 8d81f8799e
commit 5c9fc1111c
2 changed files with 2 additions and 2 deletions

View File

@@ -770,7 +770,7 @@ static int cmd_fake_disconnect(int argc, char *argv[])
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(fake_disconnect, cmd_fake_disconnect,
DECLARE_CONSOLE_COMMAND(fakedisconnect, cmd_fake_disconnect,
"<delay_ms> <duration_ms>", NULL, NULL);
static void trigger_dfu_release(void)

View File

@@ -792,7 +792,7 @@ static int command_flash_spi_sel_lock(int argc, char **argv)
ccprintf("Enabled: %d\n", ena);
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(flash_spi_sel_lock, command_flash_spi_sel_lock,
DECLARE_CONSOLE_COMMAND(flash_spi_lock, command_flash_spi_sel_lock,
"[0 | 1]",
"Lock spi flash interface selection",
NULL);