Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2021 16:36:49 GMT
From:      Leandro Lupori <luporl@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0f47f916811a - main - hwpmc: fix powerpc/powerpcspe builds
Message-ID:  <202107261636.16QGanjT033556@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by luporl:

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

commit 0f47f916811a3cc7e5a5173a1e173442aa9ddef9
Author:     Leandro Lupori <luporl@FreeBSD.org>
AuthorDate: 2021-07-26 16:29:42 +0000
Commit:     Leandro Lupori <luporl@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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107261636.16QGanjT033556>