kern: physmem: fix the format string again, i is a size_t

Fixes the riscv LINT build.

Fixes:	7b5cb32fca ("kern: physmem: properly cast %jx [...]")
This commit is contained in:
Kyle Evans 2023-02-20 23:34:33 -06:00
parent ef4e8f0cf9
commit c32946d8be

View File

@ -149,11 +149,11 @@ physmem_dump_tables(int (*prfunc)(const char *, ...) __printflike(1, 2))
#ifdef DEBUG
prfunc("Avail lists:\n");
for (i = 0; phys_avail[i] != 0; ++i) {
prfunc(" phys_avail[%d] 0x%08jx\n", i,
prfunc(" phys_avail[%zu] 0x%08jx\n", i,
(uintmax_t)phys_avail[i]);
}
for (i = 0; dump_avail[i] != 0; ++i) {
prfunc(" dump_avail[%d] 0x%08jx\n", i,
prfunc(" dump_avail[%zu] 0x%08jx\n", i,
(uintmax_t)dump_avail[i]);
}
#endif