summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_api_kernel.c
diff options
context:
space:
mode:
authorAndrey Pronin <apronin@chromium.org>2016-11-09 15:20:45 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-10 12:25:29 -0800
commit6a2f9c5a5873427d9cb40d5f854b37f611d22f8d (patch)
treed7d183dbe25a489767ee61db74b5d8225e819b96 /firmware/lib/vboot_api_kernel.c
parent7de120208bca600a79b4f879c1b939ae52e061ab (diff)
downloadvboot-6a2f9c5a5873427d9cb40d5f854b37f611d22f8d.tar.gz
tpm_lite_stub: clean up debug printouts in VbExTpmSendReceive
1) Callers of VbExTpmSendReceive often use the same buffer for TPM command and response. So, debug-print the command before sending to avoid it being overwritten with the response before printing. 2) VbExTpmSendReceive only prints execution time in debug mode. Execute gettimeofday() only when debug mode is enabled. 3) Avoid printing "DEBUG: " prefix before every byte in the command/response. BUG=none BRANCH=none TEST=emerge-$BOARD vboot_reference with and without DEBUG=1, run tpmc commands, check the output. Change-Id: I1bfe9a21e1a78227996eb7310a3584a9e5b73a87 Reviewed-on: https://chromium-review.googlesource.com/409613 Commit-Ready: Andrey Pronin <apronin@chromium.org> Tested-by: Andrey Pronin <apronin@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/lib/vboot_api_kernel.c')
0 files changed, 0 insertions, 0 deletions