Date: Fri, 30 Jan 2026 06:38:10 +0000 From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 10a01320320f - stable/15 - powerpc: explicitly cast the timebase printfs Message-ID: <697c51d2.8c49.36bf5e71@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=10a01320320fb63b7329f30b088f0370dce46380 commit 10a01320320fb63b7329f30b088f0370dce46380 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:37:42 +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 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 voidhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?697c51d2.8c49.36bf5e71>
