summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-15 12:59:44 -0700
committerGerrit <chrome-bot@google.com>2012-10-18 14:24:54 -0700
commit8febf5ba28bae606f6779b82aedf8795e11df5b3 (patch)
treeba89283903168368edbeebfc592fd3909ff81261
parent1da8181c58cdf038f867c6a6af59b2b0dd82f980 (diff)
downloadchrome-ec-8febf5ba28bae606f6779b82aedf8795e11df5b3.tar.gz
Host commands use correct console channel
Previously they reported on the system channel, not the hostcmd channel. BUG=none BRANCH=none (affects all platforms, but only affects use of 'chan' ec console command) TEST=manual - chan 0x40 - x86reset - should see HC debug output. Change-Id: Ie9873db015c94a0198a94ebafad87d51b0f73620 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/35953 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/host_command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/host_command.c b/common/host_command.c
index 6a872de508..d57c6bcd4f 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -18,8 +18,8 @@
#include "util.h"
/* Console output macros */
-#define CPUTS(outstr) cputs(CC_SYSTEM, outstr)
-#define CPRINTF(format, args...) cprintf(CC_SYSTEM, format, ## args)
+#define CPUTS(outstr) cputs(CC_HOSTCMD, outstr)
+#define CPRINTF(format, args...) cprintf(CC_HOSTCMD, format, ## args)
#define TASK_EVENT_CMD_PENDING TASK_EVENT_CUSTOM(1)