summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2018-03-16 15:05:11 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-03-16 20:55:35 -0700
commit53ce2a77f545e594405e4c7b7da5082a1bdfeb06 (patch)
tree38e8d55cf32a409492784481da480f2b4d3770b9
parent50728bc54748d95c94095c3f7c3579d4473034a9 (diff)
downloadchrome-ec-53ce2a77f545e594405e4c7b7da5082a1bdfeb06.tar.gz
console: Fix help for parse_bool
A few commands had help text of "[0 | 1]" but parse_bool() doesn't recognize 0 and 1. Change help text to "[on | off]", matching other commands. BUG=b:75302458 BRANCH=none TEST=none Change-Id: I9b1e4a70e024d17ec8bccc015069e31d7fff08ca Signed-off-by: Edward Hill <ecgh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/967248 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--chip/npcx/flash.c4
-rw-r--r--common/keyboard_8042.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/chip/npcx/flash.c b/chip/npcx/flash.c
index 2274f256dc..219347e17e 100644
--- a/chip/npcx/flash.c
+++ b/chip/npcx/flash.c
@@ -769,7 +769,7 @@ static int command_flash_spi_sel_lock(int argc, char **argv)
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(flash_spi_lock, command_flash_spi_sel_lock,
- "[0 | 1]",
+ "[on | off]",
"Lock spi flash interface selection");
static int command_flash_tristate(int argc, char **argv)
@@ -786,6 +786,6 @@ static int command_flash_tristate(int argc, char **argv)
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(flash_tristate, command_flash_tristate,
- "[0 | 1]",
+ "[on | off]",
"Tristate spi flash pins");
#endif /* CONFIG_CMD_FLASH_TRISTATE */
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c
index 4c1fb24395..3e1836a518 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -1089,7 +1089,7 @@ static int command_keyboard(int argc, char **argv)
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(kbd, command_keyboard,
- "[0 | 1]",
+ "[on | off]",
"Print or toggle keyboard info");