summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2017-12-05 13:30:44 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-12-07 01:00:51 +0000
commit9b35d80594ec92fc4decdb979d41112545a0bf1d (patch)
tree5c6398130858ba5fb2fd7cad9614f099ffde6424
parent7bc84001e5cc49e47591cc535b20df477355ade3 (diff)
downloadchrome-ec-9b35d80594ec92fc4decdb979d41112545a0bf1d.tar.gz
cr50: mark ccdstate console command safe
ccdstate just prints state. It is very useful for debugging ccd/servo contention issues. This change makes it a safe command so it is accessible even when the console is locked. BUG=none BRANCH=cr50 TEST=make buildall Change-Id: I2e754f5978c83fcaca737e7a590dcf5ee445522c Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/809864 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> (cherry picked from commit 9300c0d470f3d266465731b941075f6d0a321636) Reviewed-on: https://chromium-review.googlesource.com/813084 Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--board/cr50/rdd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/cr50/rdd.c b/board/cr50/rdd.c
index 2f12db089f..b616299c89 100644
--- a/board/cr50/rdd.c
+++ b/board/cr50/rdd.c
@@ -412,9 +412,9 @@ static int command_ccd_state(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(ccdstate, command_ccd_state,
- "",
- "Print the case closed debug device state");
+DECLARE_SAFE_CONSOLE_COMMAND(ccdstate, command_ccd_state,
+ "",
+ "Print the case closed debug device state");
static int command_ccd_block(int argc, char **argv)
{