summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2013-06-19 16:05:08 -0700
committerChromeBot <chrome-bot@google.com>2013-06-20 07:27:01 -0700
commit5290aee129232cfc7c36d5ea2017691be0c375a4 (patch)
tree066ebbda40ec2eb4df3a747a8a96ccba9a9ed809
parent86a4e8b41c1412e7cf9bdb595c71f2591cb25a86 (diff)
downloadchrome-ec-5290aee129232cfc7c36d5ea2017691be0c375a4.tar.gz
Enhance host command debug output
Add code to print out command version and command mask. BRANCH=none BUG=none TEST=manual . see this in on the EC console when hcdebug is on [1022.289347 HC V:0 VM:3 0x17:00000000] [1022.289728 HC resp:70000000000000000000000000000020] Change-Id: I443401966b81349f41246d3a118f5f145ed4b160 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/59347 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--common/host_command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/host_command.c b/common/host_command.c
index 72669e0429..0563e5b023 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -286,7 +286,8 @@ enum ec_status host_command_process(struct host_cmd_handler_args *args)
enum ec_status rv;
if (hcdebug && args->params_size)
- CPRINTF("[%T HC 0x%02x:%.*h]\n", args->command,
+ CPRINTF("[%T HC V:%d VM:%d 0x%02x:%.*h]\n", args->version,
+ cmd->version_mask, args->command,
args->params_size, args->params);
else
CPRINTF("[%T HC 0x%02x]\n", args->command);