Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Unified Diff: firmware/stub/tpm_lite_stub.c

Issue 3091004: Various bug fixes to tpm_lite. Some changes to the test suite. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: . Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: firmware/stub/tpm_lite_stub.c
diff --git a/firmware/stub/tpm_lite_stub.c b/firmware/stub/tpm_lite_stub.c
index ee1cbf13664c1d7b2e9d1b353cd3fca65f0d7b65..0dabb8f1a49c70a537959860a92570f4dccf6e15 100644
--- a/firmware/stub/tpm_lite_stub.c
+++ b/firmware/stub/tpm_lite_stub.c
@@ -56,7 +56,7 @@ static void TpmExecute(const uint8_t *in, const uint32_t in_len,
uint8_t *out, uint32_t *pout_len) {
uint8_t response[TPM_MAX_COMMAND_SIZE];
if (in_len <= 0) {
- error("invalid command length %d\n", in_len);
+ error("invalid command length %d for command 0x%x\n", in_len, in[9]);
} else if (tpm_fd < 0) {
error("the TPM device was not opened. Forgot to call TlclLibInit?\n");
} else {

Powered by Google App Engine
This is Rietveld 408576698