summaryrefslogtreecommitdiff
path: root/test/console_edit.c
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-05-23 13:54:06 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-06-01 06:22:05 +0000
commit29db6c1226288ea3eca333503a0d4a70c2729388 (patch)
tree2c9e1dd2fad77adf163087101602927f1e505c5f /test/console_edit.c
parent795c889d419e555803f6cd215c07bd208e250753 (diff)
downloadchrome-ec-29db6c1226288ea3eca333503a0d4a70c2729388.tar.gz
console_channel.inc: Add more ifdef to reduce number of channels
There are still more ifdef than can be added: this just takes out the low hanging fruits. BRANCH=poppy BUG=b:35647963 TEST=make buildall -j, see that we gain from 0 to 64 bytes on many boards. Conflicts: board/nocturne/board.c => Does not exist on FW branch Change-Id: Ibe85b8bfa5d5c22c160e4a6656104256067beee9 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1070948 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1080582
Diffstat (limited to 'test/console_edit.c')
-rw-r--r--test/console_edit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/console_edit.c b/test/console_edit.c
index b6ca3cad6e..5a1b8d4d76 100644
--- a/test/console_edit.c
+++ b/test/console_edit.c
@@ -254,8 +254,8 @@ static int test_output_channel(void)
UART_INJECT("chan 0\n");
msleep(30);
test_capture_console(1);
- cprintf(CC_CHARGER, "shouldn't see this\n");
- cputs(CC_CHIPSET, "shouldn't see this either\n");
+ cprintf(CC_SYSTEM, "shouldn't see this\n");
+ cputs(CC_TASK, "shouldn't see this either\n");
cflush();
test_capture_console(0);
TEST_ASSERT(compare_multiline_string(test_get_captured_console(),
@@ -263,8 +263,8 @@ static int test_output_channel(void)
UART_INJECT("chan restore\n");
msleep(30);
test_capture_console(1);
- cprintf(CC_CHARGER, "see me\n");
- cputs(CC_CHIPSET, "me as well\n");
+ cprintf(CC_SYSTEM, "see me\n");
+ cputs(CC_TASK, "me as well\n");
cflush();
test_capture_console(0);
TEST_ASSERT(compare_multiline_string(test_get_captured_console(),