coreboot tpm: Fix printk format specifiers

BUG=None
BRANCH=None
TEST=Compiles successfully

Change-Id: I828776724dce287d9a7eb732f2c9ecccf8d68229
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/209336
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
Furquan Shaikh 2014-07-22 11:12:15 -07:00 committed by chrome-internal-fetch
commit b50c9441dd
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ out_recv:
rc = chip->vendor.recv(chip, (uint8_t *) buf, TPM_BUFSIZE);
if (rc < 0)
printk(BIOS_DEBUG, "tpm_transmit: tpm_recv: error %zd\n", rc);
printk(BIOS_DEBUG, "tpm_transmit: tpm_recv: error %d\n", rc);
out:
return rc;
}

View file

@ -178,7 +178,7 @@ static int iic_tpm_write_generic(uint8_t addr, uint8_t *buffer, size_t len,
int count;
if (len > TPM_BUFSIZE) {
printk(BIOS_DEBUG, "%s: Length %d is too large\n", __func__, len);
printk(BIOS_DEBUG, "%s: Length %zd is too large\n", __func__, len);
return -1;
}