Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi 32-bit build fix
details: https://anonhg.NetBSD.org/src/rev/ae70f65ed0e1
branches: trunk
changeset: 359655:ae70f65ed0e1
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jan 15 18:02:33 2022 +0000
description:
32-bit build fix
diffstat:
sys/dev/acpi/sdhc_acpi.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r ea3cc5c3b218 -r ae70f65ed0e1 sys/dev/acpi/sdhc_acpi.c
--- a/sys/dev/acpi/sdhc_acpi.c Sat Jan 15 17:54:01 2022 +0000
+++ b/sys/dev/acpi/sdhc_acpi.c Sat Jan 15 18:02:33 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhc_acpi.c,v 1.18 2022/01/15 15:54:40 jmcneill Exp $ */
+/* $NetBSD: sdhc_acpi.c,v 1.19 2022/01/15 18:02:33 jmcneill Exp $ */
/*
* Copyright (c) 2016 Kimihiro Nonaka <nonaka%NetBSD.org@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc_acpi.c,v 1.18 2022/01/15 15:54:40 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc_acpi.c,v 1.19 2022/01/15 18:02:33 jmcneill Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -381,8 +381,8 @@
}
aprint_debug_dev(sc->sc_dev,
- "eMMC Set Card Clock DSM returned %lu Hz\n", actfreq);
- if (actfreq == 0) {
+ "eMMC Set Card Clock DSM returned %" PRIu64 " Hz\n", actfreq);
+ if (actfreq == 0 && freq != 0) {
return EINVAL;
}
Home |
Main Index |
Thread Index |
Old Index