mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
common: Print host command code in error.
For some boards, the HCDEBUG setting is defaulting to off due to "too spammy" console output. An unfortunate side effect of this is that when a host command results in an error, it's impossible to know what was the command that failed. This commit adds the host command code to the error print so that it's clear what command failed. BUG=None BRANCH=gru,glados,oak TEST=Build and flash kevin, verify that any host commands that resulted in an error have the command code printed alongside them. Change-Id: I6a5f251e7941a47a3cf102a1fb6c5e96ffc8fa5d Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/395490 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
a465405302
commit
d4628e2248
@@ -597,7 +597,7 @@ enum ec_status host_command_process(struct host_cmd_handler_args *args)
|
||||
}
|
||||
|
||||
if (rv != EC_RES_SUCCESS)
|
||||
CPRINTS("HC err %d", rv);
|
||||
CPRINTS("HC 0x%02x err %d", args->command, rv);
|
||||
|
||||
if (hcdebug >= HCDEBUG_PARAMS && args->response_size)
|
||||
CPRINTS("HC resp:%.*h", args->response_size,
|
||||
|
||||
Reference in New Issue
Block a user