Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi make compile on 64-bit archs after acpi_mem ar_...
details: https://anonhg.NetBSD.org/src/rev/814752d1b9be
branches: trunk
changeset: 995138:814752d1b9be
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Dec 09 11:12:58 2018 +0000
description:
make compile on 64-bit archs after acpi_mem ar_length was changed
from uint32_t to bus_size_t in rev. 1.77 of acpivar.h
diffstat:
sys/dev/acpi/tpm_acpi.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 3c2c8abd21e3 -r 814752d1b9be sys/dev/acpi/tpm_acpi.c
--- a/sys/dev/acpi/tpm_acpi.c Sun Dec 09 10:38:53 2018 +0000
+++ b/sys/dev/acpi/tpm_acpi.c Sun Dec 09 11:12:58 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tpm_acpi.c,v 1.6 2018/02/22 01:50:26 christos Exp $ */
+/* $NetBSD: tpm_acpi.c,v 1.7 2018/12/09 11:12:58 jdolecek Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tpm_acpi.c,v 1.6 2018/02/22 01:50:26 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tpm_acpi.c,v 1.7 2018/12/09 11:12:58 jdolecek Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -156,8 +156,8 @@
if (mem->ar_length != TPM_SIZE) {
aprint_error_dev(sc->sc_dev,
- "wrong size mem %u != %u\n",
- mem->ar_length, TPM_SIZE);
+ "wrong size mem %"PRIu64" != %u\n",
+ (uint64_t)mem->ar_length, TPM_SIZE);
goto out;
}
Home |
Main Index |
Thread Index |
Old Index