The branch main has been updated by markj:

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

commit c869a36fc98a2ac1df5127e34ba7f9bffa0a5ce7
Author:     Mark Johnston <[email protected]>
AuthorDate: 2026-08-28 01:25:25 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2026-08-28 01:26:04 +0000

    rangelock: Fix format strings for 32-bit kernels
    
    Reported by:    Jenkins
    Fixes:          f1f58bdf7b5f ("acpi_pci: Honor device proximity for DMA 
tags")
---
 sys/kern/kern_rangelock.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/kern/kern_rangelock.c b/sys/kern/kern_rangelock.c
index a2b6829c0107..659f055507f6 100644
--- a/sys/kern/kern_rangelock.c
+++ b/sys/kern/kern_rangelock.c
@@ -835,8 +835,8 @@ _rangelock_cookie_assert(void *cookie, int what, const char 
*file, int line)
                if (c == RL_RET_CHEAT_RLOCKED)
                        break;
                if (c == RL_RET_CHEAT_WLOCKED)
-                       panic("rangelock not rlocked (%#lx) @ %s:%d\n",
-                           c, file, line);
+                       panic("rangelock not rlocked (%#jx) @ %s:%d\n",
+                           (uintmax_t)c, file, line);
                entry = cookie;
                if ((entry->rl_q_flags & RL_LOCK_TYPE_MASK) != RL_LOCK_READ)
                        panic("rangelock not rlocked (%#x) @ %s:%d\n",
@@ -850,8 +850,8 @@ _rangelock_cookie_assert(void *cookie, int what, const char 
*file, int line)
                if (c == RL_RET_CHEAT_WLOCKED)
                        break;
                if (c == RL_RET_CHEAT_RLOCKED)
-                       panic("rangelock not wlocked (%#lx) @ %s:%d\n",
-                           c, file, line);
+                       panic("rangelock not wlocked (%#jx) @ %s:%d\n",
+                           (uintmax_t)c, file, line);
                entry = cookie;
                if ((entry->rl_q_flags & RL_LOCK_TYPE_MASK) != RL_LOCK_WRITE)
                        panic("rangelock not wlocked (%#x) @ %s:%d\n",

Reply via email to