git: 208d30a8f594 - main - amdsmu(4): Fix 32-bit compile
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Nov 2026 12:21:16 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=208d30a8f594e5683992a71dd01747179a1f923d
commit 208d30a8f594e5683992a71dd01747179a1f923d
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-11-04 10:45:26 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-11-04 12:20:40 +0000
amdsmu(4): Fix 32-bit compile
For what is worth, since i386 is going away soon and still does not
compile.
Fixes: cd96657b6708 ("amdsmu: Print how long system spent in S0i3")
Sponsored by: The FreeBSD Foundation
---
sys/dev/amdsmu/amdsmu.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/dev/amdsmu/amdsmu.c b/sys/dev/amdsmu/amdsmu.c
index cee7dbec95d7..4d833e90cf11 100644
--- a/sys/dev/amdsmu/amdsmu.c
+++ b/sys/dev/amdsmu/amdsmu.c
@@ -14,6 +14,8 @@
#include <sys/rman.h>
#include <sys/sysctl.h>
+#include <machine/_inttypes.h>
+
#include "opt_acpi.h"
#if defined(DEV_ACPI)
@@ -330,7 +332,7 @@ amdsmu_resume_check(device_t dev, enum power_stype stype)
*/
if (m->time_last_in_s0i3 != 0) {
device_printf(dev,
- "spent %lu seconds in S0i3 during last suspend\n",
+ "spent %" PRIu64 " seconds in S0i3 during last suspend\n",
m->time_last_in_s0i3 / 1000000);
return;
}