summaryrefslogtreecommitdiff
path: root/src/security
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/security
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/security')
-rw-r--r--src/security/vboot/ec_sync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/security/vboot/ec_sync.c b/src/security/vboot/ec_sync.c
index 56e6c44d60..5b3287ed13 100644
--- a/src/security/vboot/ec_sync.c
+++ b/src/security/vboot/ec_sync.c
@@ -174,7 +174,7 @@ static vb2_error_t ec_hash_image(enum vb2_firmware_selection select,
return VB2_ERROR_UNKNOWN;
}
- printk(BIOS_INFO, "EC took %luus to calculate image hash\n",
+ printk(BIOS_INFO, "EC took %lldus to calculate image hash\n",
stopwatch_duration_usecs(&sw));
*hash = resp.hash_digest;
@@ -460,7 +460,7 @@ vb2_error_t vb2ex_ec_vboot_done(struct vb2_context *ctx)
"EC requests limited power usage. Request shutdown.\n");
return VB2_REQUEST_SHUTDOWN;
} else {
- printk(BIOS_INFO, "Waited %luus to clear limit power flag.\n",
+ printk(BIOS_INFO, "Waited %lldus to clear limit power flag.\n",
stopwatch_duration_usecs(&sw));
}
@@ -541,7 +541,7 @@ vb2_error_t vb2ex_ec_jump_to_rw(void)
mdelay(50);
while (google_chromeec_hello()) {
if (stopwatch_expired(&sw)) {
- printk(BIOS_ERR, "EC did not return from reboot after %luus\n",
+ printk(BIOS_ERR, "EC did not return from reboot after %lldus\n",
stopwatch_duration_usecs(&sw));
return VB2_ERROR_UNKNOWN;
}
@@ -549,7 +549,7 @@ vb2_error_t vb2ex_ec_jump_to_rw(void)
mdelay(5);
}
- printk(BIOS_INFO, "\nEC returned from reboot after %luus\n",
+ printk(BIOS_INFO, "\nEC returned from reboot after %lldus\n",
stopwatch_duration_usecs(&sw));
return VB2_SUCCESS;