diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-08-25 15:10:55 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2016-08-31 17:20:26 +0000 |
commit | 8c4421759d127f23d9745c6b495e5d69e171b9a6 (patch) | |
tree | feec0fdee8a19e56ac86c894c3fd69cf85b3bcfe /common/console_output.c | |
parent | ada6b3d5d5c058d38b7a73da48d3173c6c453da0 (diff) | |
download | chrome-ec-8c4421759d127f23d9745c6b495e5d69e171b9a6.tar.gz |
Cr50: Mark several console commands as safe
Even when CONFIG_RESTRICTED_CONSOLE_COMMANDS is enabled, there
are many commands that can't do anything dangerous. This marks
some of those commands as safe to use, even when restrictions are
enforced.
I'm only marking commands that are used by the Cr50, since that's
the only board that has restrictions.
BUG=chrome-os-partner:55322
BRANCH=none
TEST=make buildall, test on Cr50 hardware
Change-Id: I6289d332830175b6adcb6b20cb4c21d01d27a25e
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/376188
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/console_output.c')
-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 7354ea4392..1102294fd7 100644 --- a/common/console_output.c +++ b/common/console_output.c @@ -146,6 +146,6 @@ 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"); |