The branch main has been updated by kevans:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=cd73914b01a1f2300e587f802383cc563f2e7103

commit cd73914b01a1f2300e587f802383cc563f2e7103
Author:     Kyle Evans <kev...@freebsd.org>
AuthorDate: 2023-02-20 18:54:00 +0000
Commit:     Kyle Evans <kev...@freebsd.org>
CommitDate: 2023-02-20 18:55:04 +0000

    kern: physmem: don't truncate addresses in DEBUG output
    
    Make it consistent with the above region printing, otherwise it appears
    to be somewhat confusing.
---
 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 bb6af5a580aa..d371e1e166c5 100644
--- a/sys/kern/subr_physmem.c
+++ b/sys/kern/subr_physmem.c
@@ -149,10 +149,10 @@ physmem_dump_tables(int (*prfunc)(const char *, ...))
 #ifdef DEBUG
        prfunc("Avail lists:\n");
        for (i = 0; phys_avail[i] != 0; ++i) {
-               prfunc("  phys_avail[%d] 0x%08x\n", i, phys_avail[i]);
+               prfunc("  phys_avail[%d] 0x%08jx\n", i, phys_avail[i]);
        }
        for (i = 0; dump_avail[i] != 0; ++i) {
-               prfunc("  dump_avail[%d] 0x%08x\n", i, dump_avail[i]);
+               prfunc("  dump_avail[%d] 0x%08jx\n", i, dump_avail[i]);
        }
 #endif
 }

Reply via email to