diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2016-05-17 14:41:59 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-05-18 01:27:45 -0700 |
commit | 5c9fc1111c30eeacbd8474d5b80b1883def378d3 (patch) | |
tree | a6ad179668ffdc1af5f5672ca6b4de213effab17 | |
parent | 8d81f8799e431e66457ff164172bf98a47bdbbf2 (diff) | |
download | chrome-ec-5c9fc1111c30eeacbd8474d5b80b1883def378d3.tar.gz |
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>
-rw-r--r-- | board/plankton/board.c | 2 | ||||
-rw-r--r-- | chip/npcx/flash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/plankton/board.c b/board/plankton/board.c index a0cd041724..8f56422ba1 100644 --- a/board/plankton/board.c +++ b/board/plankton/board.c @@ -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) diff --git a/chip/npcx/flash.c b/chip/npcx/flash.c index 5dd866e5f4..37e7cd7319 100644 --- a/chip/npcx/flash.c +++ b/chip/npcx/flash.c @@ -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); |