git: 0f47f916811a - main - hwpmc: fix powerpc/powerpcspe builds
Leandro Lupori
luporl at FreeBSD.org
Mon Jul 26 16:36:50 UTC 2021
The branch main has been updated by luporl:
URL: https://cgit.FreeBSD.org/src/commit/?id=0f47f916811a3cc7e5a5173a1e173442aa9ddef9
commit 0f47f916811a3cc7e5a5173a1e173442aa9ddef9
Author: Leandro Lupori <luporl at FreeBSD.org>
AuthorDate: 2021-07-26 16:29:42 +0000
Commit: Leandro Lupori <luporl at FreeBSD.org>
CommitDate: 2021-07-26 16:29:42 +0000
hwpmc: fix powerpc/powerpcspe builds
Fix 32-bit PowerPC build errors introduced by b48a2770d48b.
---
sys/dev/hwpmc/hwpmc_powerpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/hwpmc/hwpmc_powerpc.c b/sys/dev/hwpmc/hwpmc_powerpc.c
index 3a2115ece3cb..407af94a07e1 100644
--- a/sys/dev/hwpmc/hwpmc_powerpc.c
+++ b/sys/dev/hwpmc/hwpmc_powerpc.c
@@ -604,7 +604,7 @@ pmc_md_initialize()
}
/* Set the value for kern.hwpmc.cpuid */
- snprintf(pmc_cpuid, sizeof(pmc_cpuid), "%08lx", mfpvr());
+ snprintf(pmc_cpuid, sizeof(pmc_cpuid), "%08jx", (uintmax_t)mfpvr());
return (pmc_mdep);
}
More information about the dev-commits-src-all
mailing list