summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/i2c/tpm/tpm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/i2c/tpm/tpm.c b/src/drivers/i2c/tpm/tpm.c
index 4321757705..ee23ea7c44 100644
--- a/src/drivers/i2c/tpm/tpm.c
+++ b/src/drivers/i2c/tpm/tpm.c
@@ -365,7 +365,7 @@ static int tpm_tis_i2c_recv(struct tpm_chip *chip, uint8_t *buf, size_t count)
/* read first 10 bytes, including tag, paramsize, and result */
size = recv_data(chip, buf, TPM_HEADER_SIZE);
if (size < TPM_HEADER_SIZE) {
- printk(BIOS_DEBUG, "tpm_tis_i2c_recv: Unable to read header\n");
+ printk(BIOS_DEBUG, "%s: Unable to read header\n", __func__);
goto out;
}
@@ -379,15 +379,14 @@ static int tpm_tis_i2c_recv(struct tpm_chip *chip, uint8_t *buf, size_t count)
size += recv_data(chip, &buf[TPM_HEADER_SIZE],
expected - TPM_HEADER_SIZE);
if (size < expected) {
- printk(BIOS_DEBUG, "tpm_tis_i2c_recv: Unable to "
- "read remainder of result\n");
+ printk(BIOS_DEBUG, "%s: Unable to read remainder of result\n", __func__);
size = -1;
goto out;
}
wait_for_stat(chip, TPM_STS_VALID, &status);
if (status & TPM_STS_DATA_AVAIL) { /* retry? */
- printk(BIOS_DEBUG, "tpm_tis_i2c_recv: Error left over data\n");
+ printk(BIOS_DEBUG, "%s: Error left over data\n", __func__);
size = -1;
goto out;
}