summaryrefslogtreecommitdiff
path: root/common/bootstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/bootstage.c')
-rw-r--r--common/bootstage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bootstage.c b/common/bootstage.c
index 5c1df089d7..6c0805d4ec 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -102,7 +102,7 @@ void bootstage_report(void)
prev = print_time_record(BOOTSTAGE_AWAKE, rec, 0);
/* Sort records by increasing time */
- qsort(record, BOOTSTAGE_COUNT, ARRAY_SIZE(record), h_compare_record);
+ qsort(record, ARRAY_SIZE(record), sizeof(*rec), h_compare_record);
for (id = 0; id < BOOTSTAGE_COUNT; id++, rec++) {
if (rec->time_us != 0)