diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2026-01-30 06:36:33 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2026-01-30 06:36:33 +0000 |
| commit | 03e4cc9fdeb2a6445f13cd41b471927a0f722fff (patch) | |
| tree | b0c7d55a67a58cf85764e3dc2cbd9063606b5000 | |
| parent | c443f5d1c20868f09076305c3eefcd1ca1917b87 (diff) | |
powerpc: explicitly cast the timebase printfs
This is causing compilation issues on powerpc:powerpc GENERIC.
| -rw-r--r-- | sys/powerpc/powermac/platform_powermac.c | 16 |
1 files 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 |
