Module Name: src
Committed By: jmcneill
Date: Sat Jan 15 18:02:33 UTC 2022
Modified Files:
src/sys/dev/acpi: sdhc_acpi.c
Log Message:
32-bit build fix
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/acpi/sdhc_acpi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/sdhc_acpi.c
diff -u src/sys/dev/acpi/sdhc_acpi.c:1.18 src/sys/dev/acpi/sdhc_acpi.c:1.19
--- src/sys/dev/acpi/sdhc_acpi.c:1.18 Sat Jan 15 15:54:40 2022
+++ src/sys/dev/acpi/sdhc_acpi.c Sat Jan 15 18:02:33 2022
@@ -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 <[email protected]>
@@ -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 @@ sdhc_acpi_rockchip_bus_clock(struct sdhc
}
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;
}