summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2019-06-12 14:32:07 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-18 01:24:44 +0000
commite57c7468b01d59eb7a329613bb960d7a6245b224 (patch)
tree65a0c24e54fbea5a3bf29848412e14fa4aa4568f
parentde7ba1f17dcb388e58e826f2ff6117dd676ce670 (diff)
downloadchrome-ec-e57c7468b01d59eb7a329613bb960d7a6245b224.tar.gz
nvmem: use CC_SYSTEM instead of CC_COMMAND
Use CC_SYSTEM for nvmem print statments instead of CC_COMMAND, so the CC_COMMAND channel will only have command output. BUG=none BRANCH=cr50 TEST=chan 0 restricts the console, so it only prints command output. Nvmem prints are still enabled by default. Change-Id: Ief79c930416a3560f7316c0df77c73504d855070 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1656628 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--common/nvmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/nvmem.c b/common/nvmem.c
index 577318af2f..77c3fe2040 100644
--- a/common/nvmem.c
+++ b/common/nvmem.c
@@ -13,8 +13,8 @@
#include "timer.h"
#include "util.h"
-#define CPRINTF(format, args...) cprintf(CC_COMMAND, format, ##args)
-#define CPRINTS(format, args...) cprints(CC_COMMAND, format, ##args)
+#define CPRINTF(format, args...) cprintf(CC_SYSTEM, format, ##args)
+#define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ##args)
/*
* The NVMEM contents are stored in flash memory. At run time there is an SRAM