summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2014-05-21 02:14:07 +0000
committermlarkin <mlarkin@openbsd.org>2014-05-21 02:14:07 +0000
commit7a27271e503f2515263c54cf0351b612e0e3a96f (patch)
tree46c87975c4f702a74671fa6c619700abb292b18d /sys/dev/acpi/acpi.c
parentwarn about implicit. misspelled function names in libc are deadly. (diff)
downloadwireguard-openbsd-7a27271e503f2515263c54cf0351b612e0e3a96f.tar.xz
wireguard-openbsd-7a27271e503f2515263c54cf0351b612e0e3a96f.zip
Fix invalid / missing format specifiers in several dnprintf statements
(used only when ACPI_DEBUG is enabled) From a diff on tech@ by Fabian Raetz, with a minor change by me, tested on i386 and amd64 with ACPI_DEBUG enabled and disabled.
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index a045de8178b..8a84dec74af 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.257 2014/04/25 14:37:06 mlarkin Exp $ */
+/* $OpenBSD: acpi.c,v 1.258 2014/05/21 02:14:07 mlarkin Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -431,13 +431,13 @@ int
acpi_matchhids(struct acpi_attach_args *aa, const char *hids[],
const char *driver)
{
-
if (aa->aaa_dev == NULL || aa->aaa_node == NULL)
return (0);
if (_acpi_matchhids(aa->aaa_dev, hids)) {
- dnprintf(5, "driver %s matches %s\n", driver, hids);
+ dnprintf(5, "driver %s matches at least one hid\n", driver);
return (1);
}
+
return (0);
}
#endif /* SMALL_KERNEL */
@@ -1336,7 +1336,7 @@ acpi_map_pmregs(struct acpi_softc *sc)
break;
}
if (size && addr) {
- dnprintf(50, "mapping: %.4x %.4x %s\n",
+ dnprintf(50, "mapping: %.4lx %.4lx %s\n",
addr, size, name);
/* Size and address exist; map register space */