diff options
author | Vic Yang <victoryang@chromium.org> | 2013-09-18 10:55:11 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-09-18 22:09:04 +0000 |
commit | 6aa88ffa4e6d64a59e5c1d68439ee29d4e8193cc (patch) | |
tree | 2915008ef07a6691361484f05937ce046f7cfb21 | |
parent | 2c16da8e91c5939fc419e939de1376c7dd93046f (diff) | |
download | chrome-ec-6aa88ffa4e6d64a59e5c1d68439ee29d4e8193cc.tar.gz |
Fix console channel name list
This adds back missing "hook" channel name. Also add a build assertion
to make sure we don't miss this again.
BUG=chrome-os-partner:21801
TEST=Build all boards. Remove "hook" channel and check build fails.
BRANCH=None
Change-Id: I373016504fd3753e1a791077d49b3af14b2b1aa4
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/169703
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | common/console_output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/console_output.c b/common/console_output.c index 385c48d0af..7f70651f04 100644 --- a/common/console_output.c +++ b/common/console_output.c @@ -18,7 +18,7 @@ static uint32_t channel_mask_saved = CC_DEFAULT; /* List of channel names; must match enum console_channel. */ /* TODO: move this to board.c */ -static const char *channel_names[CC_CHANNEL_COUNT] = { +static const char * const channel_names[] = { "command", "charger", "chipset", @@ -40,7 +40,9 @@ static const char *channel_names[CC_CHANNEL_COUNT] = { "thermal", "usbcharge", "vboot", + "hook", }; +BUILD_ASSERT(ARRAY_SIZE(channel_names) == CC_CHANNEL_COUNT); /*****************************************************************************/ /* Channel-based console output */ |