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/panic_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/panic_output.c')
-rw-r--r-- | common/panic_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/panic_output.c b/common/panic_output.c index bfd7f7a51f..b278ac1acb 100644 --- a/common/panic_output.c +++ b/common/panic_output.c @@ -218,9 +218,9 @@ static int command_panicinfo(int argc, char **argv) } return EC_SUCCESS; } -DECLARE_CONSOLE_COMMAND(panicinfo, command_panicinfo, - NULL, - "Print info from a previous panic"); +DECLARE_SAFE_CONSOLE_COMMAND(panicinfo, command_panicinfo, + NULL, + "Print info from a previous panic"); /*****************************************************************************/ /* Host commands */ |