git: c32946d8bee0 - main - kern: physmem: fix the format string again, i is a size_t
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Feb 2023 05:40:18 UTC
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=c32946d8bee0d82042165c5d78b4d339d1268a2a
commit c32946d8bee0d82042165c5d78b4d339d1268a2a
Author: Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2023-02-21 05:34:33 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-02-21 05:39:38 +0000
kern: physmem: fix the format string again, i is a size_t
Fixes the riscv LINT build.
Fixes: 7b5cb32fca26 ("kern: physmem: properly cast %jx [...]")
---
sys/kern/subr_physmem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/kern/subr_physmem.c b/sys/kern/subr_physmem.c
index a53d2cb879eb..1fb617078625 100644
--- a/sys/kern/subr_physmem.c
+++ b/sys/kern/subr_physmem.c
@@ -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