summaryrefslogtreecommitdiff
path: root/src/drivers/spi/tpm
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2022-09-12 06:31:47 -0600
committerFelix Held <felix-coreboot@felixheld.de>2022-09-14 11:55:39 +0000
commitd522f38c7bfccdc4af71bcad133aec20096f3f6c (patch)
tree28824b7b1bb659fffc6d1b8cb793f98f93f53c89 /src/drivers/spi/tpm
parent51249d6bed93f25569a35fa184038cafddc0dec0 (diff)
timer: Change timer util functions to 64-bit
Since mono_time is now 64-bit, the utility functions interfacing with mono_time should also be 64-bit so precision isn't lost. Fixed build errors related to printing the now int64_t result of stopwatch_duration_[m|u]secs in various places. BUG=b:237082996 BRANCH=All TEST=Boot dewatt Change-Id: I169588f5e14285557f2d03270f58f4c07c0154d5 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66170 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/drivers/spi/tpm')
-rw-r--r--src/drivers/spi/tpm/tpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c
index 5645e57d82..68f9588d53 100644
--- a/src/drivers/spi/tpm/tpm.c
+++ b/src/drivers/spi/tpm/tpm.c
@@ -390,14 +390,14 @@ static enum cb_err tpm2_claim_locality(void)
break;
}
- printk(BIOS_INFO, "TPM ready after %ld ms\n",
+ printk(BIOS_INFO, "TPM ready after %lld ms\n",
stopwatch_duration_msecs(&sw));
return CB_SUCCESS;
} while (!stopwatch_expired(&sw));
printk(BIOS_ERR,
- "Failed to claim locality 0 after %ld ms, status: %#x\n",
+ "Failed to claim locality 0 after %lld ms, status: %#x\n",
stopwatch_duration_msecs(&sw), access);
return CB_ERR;