git: 03e4cc9fdeb2 - main - powerpc: explicitly cast the timebase printfs

From: Adrian Chadd <adrian_at_FreeBSD.org>
Date: Fri, 30 Jan 2026 06:37:22 UTC
The branch main has been updated by adrian:

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

commit 03e4cc9fdeb2a6445f13cd41b471927a0f722fff
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2026-01-30 06:36:33 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2026-01-30 06:36:33 +0000

    powerpc: explicitly cast the timebase printfs
    
    This is causing compilation issues on powerpc:powerpc GENERIC.
---
 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 cbb2e212a00d..9f8a06d8dd3a 100644
--- a/sys/powerpc/powermac/platform_powermac.c
+++ b/sys/powerpc/powermac/platform_powermac.c
@@ -418,8 +418,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);
@@ -457,8 +457,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());
 }
 
 /**
@@ -479,8 +479,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
@@ -517,8 +517,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