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>
This commit is contained in:
Vic Yang
2013-09-18 10:55:11 +08:00
committed by chrome-internal-fetch
parent 2c16da8e91
commit 6aa88ffa4e

View File

@@ -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 */