The branch stable/14 has been updated by adrian:

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

commit d76b8a928d6663501211fdb82b32c1403a81a48f
Author:     Adrian Chadd <[email protected]>
AuthorDate: 2026-01-30 06:36:33 +0000
Commit:     Adrian Chadd <[email protected]>
CommitDate: 2026-01-30 06:38:36 +0000

    powerpc: explicitly cast the timebase printfs
    
    This is causing compilation issues on powerpc:powerpc GENERIC.
    
    (cherry picked from commit 03e4cc9fdeb2a6445f13cd41b471927a0f722fff)
---
 sys/powerpc/powermac/platform_powermac.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/sys/powerpc/powermac/platform_powermac.c 
b/sys/powerpc/powermac/platform_powermac.c
index a34b7c9c83cb..d29964ce5b51 100644
--- a/sys/powerpc/powermac/platform_powermac.c
+++ b/sys/powerpc/powermac/platform_powermac.c
@@ -419,8 +419,8 @@ powermac_smp_timebase_sync_fallback(platform_t plat, u_long 
tb, int ap)
        static volatile int cpu_done;
 
        if (bootverbose)
-               printf("[%d] %s: called, AP tb=0x%lx tb=0x%lx\n",
-                   ap, __func__, tb, mftb());
+               printf("[%d] %s: called, AP tb=0x%jx tb=0x%jx\n",
+                   ap, __func__, (uintmax_t)tb, (uintmax_t)mftb());
 
        /* Do initial timebase sync */
        mttb(tb);
@@ -458,8 +458,8 @@ powermac_smp_timebase_sync_fallback(platform_t plat, u_long 
tb, int ap)
                critical_exit();
        }
        if (bootverbose)
-               printf("[%d] %s: finished; AP tb=0x%lx called tb=0x%lx\n",
-                   ap, __func__, tb, mftb());
+               printf("[%d] %s: finished; AP tb=0x%jx called tb=0x%jx\n",
+                   ap, __func__, (uintmax_t)tb, (uintmax_t)mftb());
 }
 
 /**
@@ -480,8 +480,8 @@ powermac_smp_timebase_sync_freeze(platform_t plat, u_long 
tb, int ap)
        static volatile int cpu_done;
 
        if (bootverbose)
-               printf("[%d] %s: called, AP tb=0x%lx tb=0x%lx\n",
-                   ap, __func__, tb, mftb());
+               printf("[%d] %s: called, AP tb=0x%jx tb=0x%jx\n",
+                   ap, __func__, (uintmax_t)tb, (uintmax_t)mftb());
 
        /*
         * This needs to be replaced with a cpu-to-cpu software sync
@@ -518,8 +518,8 @@ powermac_smp_timebase_sync_freeze(platform_t plat, u_long 
tb, int ap)
                critical_exit();
        }
        if (bootverbose)
-               printf("[%d] %s: finished; AP tb=0x%lx called tb=0x%lx\n",
-                   ap, __func__, tb, mftb());
+               printf("[%d] %s: finished; AP tb=0x%jx called tb=0x%jx\n",
+                   ap, __func__, (uintmax_t)tb, (uintmax_t)mftb());
 }
 
 static void

Reply via email to