From 5fae412d26fc53aa6c5f4c1a3ff4d089e1f2108b Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Wed, 14 Sep 2016 17:43:58 +1000 Subject: occ: use tb_to_msec rather than hard coding it Signed-off-by: Stewart Smith Reviewed-by: Vaidyanathan Srinivasan --- hw/occ.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/occ.c') diff --git a/hw/occ.c b/hw/occ.c index b606a67..c845732 100644 --- a/hw/occ.c +++ b/hw/occ.c @@ -154,8 +154,8 @@ static bool wait_for_all_occ_init(void) *(uint64_t *)occ_data_area); } end_time = mftb(); - prlog(PR_NOTICE, "OCC: All Chip Rdy after %lld ms\n", - (end_time - start_time) / 512 / 1000); + prlog(PR_NOTICE, "OCC: All Chip Rdy after %lu ms\n", + tb_to_msecs(end_time - start_time)); return true; } -- cgit v1.1