diff options
author | Mary Ruthven <mruthven@google.com> | 2018-05-30 10:21:59 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-31 00:19:29 -0700 |
commit | f730193824dac4294c58e97eed60c8d8c39f28bc (patch) | |
tree | 90cf79fb4445bb309539667ede1d42926cb1ef7e /common | |
parent | e5eb7709d0bc510f53f1396af53ae19dc18ab092 (diff) | |
download | chrome-ec-f730193824dac4294c58e97eed60c8d8c39f28bc.tar.gz |
console_output: make chan a safe command
We need to control the console channels for cr50 testing, so we need
access to chan even if the console is restricted. Make chan a safe
command so it is always accessible.
BUG=b:80319784
BRANCH=cr50
TEST=on cr50 make sure the command is accessible no matter the console
state
Change-Id: Ia392f32c319c1acf9bb97b97d7f72c7e56427ce3
Signed-off-by: Mary Ruthven <mruthven@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1079452
Commit-Ready: Mary Ruthven <mruthven@chromium.org>
Tested-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/console_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/console_output.c b/common/console_output.c index 01f60859a4..0eb1423b83 100644 --- a/common/console_output.c +++ b/common/console_output.c @@ -155,7 +155,7 @@ static int command_ch(int argc, char **argv) } return EC_SUCCESS; }; -DECLARE_CONSOLE_COMMAND(chan, command_ch, - "[ save | restore | <mask> ]", - "Save, restore, get or set console channel mask"); +DECLARE_SAFE_CONSOLE_COMMAND(chan, command_ch, + "[ save | restore | <mask> ]", + "Save, restore, get or set console channel mask"); #endif /* CONFIG_CONSOLE_CHANNEL */ |