summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2007-01-25 21:26:07 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2007-01-25 21:26:07 +0000
commit9a7efb7e6f5c479319cc442aba8dbb69ad560406 (patch)
tree5253ae96ff4a0d6a6fb44097a48130110f4d5654 /sys/dev/acpi
parent3d581047e29e2fb774e3a1864c1bc63b159a8285 (diff)
Make debug output a tad more consistent.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpidock.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sys/dev/acpi/acpidock.c b/sys/dev/acpi/acpidock.c
index 88f2fcd5064..be2fe26f3ed 100644
--- a/sys/dev/acpi/acpidock.c
+++ b/sys/dev/acpi/acpidock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidock.c,v 1.3 2007/01/22 22:01:13 mk Exp $ */
+/* $OpenBSD: acpidock.c,v 1.4 2007/01/25 21:26:06 mk Exp $ */
/*
* Copyright (c) 2006,2007 Michael Knudsen <mk@openbsd.org>
*
@@ -146,15 +146,12 @@ acpidock_docklock(struct acpidock_softc *sc, int lock)
memset(&res, 0, sizeof res);
if (aml_evalname(sc->sc_acpi, sc->sc_devnode->parent, "_LCK", 1, &cmd,
&res) != 0) {
- /* lock is optional, no worries */
- dnprintf(20, "%s: unable to lock %d: %d\n", DEVNAME(sc),
- lock, aml_val2int(&res));
+ dnprintf(20, "%s: _LCD %d failed\n", DEVNAME(sc), lock);
aml_freevalue(&res);
return (0);
} else {
- dnprintf(20, "%s: _LCK %d successful: %d\n", DEVNAME(sc),
- lock, aml_val2int(&res));
+ dnprintf(20, "%s: _LCK %d successful\n", DEVNAME(sc), lock);
aml_freevalue(&res);
return (1);
@@ -206,14 +203,12 @@ acpidock_eject(struct acpidock_softc *sc)
if (aml_evalname(sc->sc_acpi, sc->sc_devnode->parent, "_EJ0", 1, &cmd,
&res) != 0) {
/* XXX */
- dnprintf(15, "%s: unable to eject %d: %d\n", DEVNAME(sc),
- dock, aml_val2int(&res));
+ dnprintf(15, "%s: _EJ0 %d failed\n", DEVNAME(sc), dock);
aml_freevalue(&res);
return (0);
} else {
- dnprintf(15, "%s: _EJ0 %d successful: %d\n", DEVNAME(sc),
- dock, aml_val2int(&res));
+ dnprintf(15, "%s: _EJ0 %d successful\n", DEVNAME(sc), dock);
sc->sc_docked = 0;
aml_freevalue(&res);