summaryrefslogtreecommitdiff
path: root/lib/time.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-10-14 13:35:05 -0400
committerTom Rini <trini@konsulko.com>2020-10-14 13:35:05 -0400
commit6731c5a5ef30e1581e3042b11893627f42949cd7 (patch)
treea5c3fe0db688a28be279cac93174389863747d23 /lib/time.c
parent55fca74a5ba9bb0a101b247f421e81322b945a7b (diff)
parent40a3008632abd8bb393eefc212547456f2a5cb25 (diff)
Merge branch '2020-10-14-assorted-changes'
- Add support for Linux "pstore" dumps. - Button command fixup. - gd cleanup and documentation. - Assorted other cleanups.
Diffstat (limited to 'lib/time.c')
-rw-r--r--lib/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/time.c b/lib/time.c
index 47f8c84327d..88bc50405ff 100644
--- a/lib/time.c
+++ b/lib/time.c
@@ -91,13 +91,13 @@ uint64_t notrace get_ticks(void)
ret = dm_timer_init();
if (ret)
- return ret;
+ panic("Could not initialize timer (err %d)\n", ret);
#endif
}
ret = timer_get_count(gd->timer, &count);
if (ret)
- return ret;
+ panic("Could not read count from timer (err %d)\n", ret);
return count;
}