diff options
author | Michael Knudsen <mk@cvs.openbsd.org> | 2007-01-22 22:01:14 +0000 |
---|---|---|
committer | Michael Knudsen <mk@cvs.openbsd.org> | 2007-01-22 22:01:14 +0000 |
commit | 4d597a0c344c4beb65867c1106ecf5e2908d742f (patch) | |
tree | df518e913c493e150f4c62e8b0efb0b89ff3d9f6 | |
parent | 5c9426fd22e535b9f693173146f48dbf8a76baef (diff) |
Fix a comment and reduce the chattyness of some debug.
-rw-r--r-- | sys/dev/acpi/acpidock.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/acpi/acpidock.c b/sys/dev/acpi/acpidock.c index 5f5a0507333..88f2fcd5064 100644 --- a/sys/dev/acpi/acpidock.c +++ b/sys/dev/acpi/acpidock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpidock.c,v 1.2 2007/01/22 21:11:44 mk Exp $ */ +/* $OpenBSD: acpidock.c,v 1.3 2007/01/22 22:01:13 mk Exp $ */ /* * Copyright (c) 2006,2007 Michael Knudsen <mk@openbsd.org> * @@ -146,7 +146,7 @@ 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) { - /* no mechanical lock, no worries */ + /* lock is optional, no worries */ dnprintf(20, "%s: unable to lock %d: %d\n", DEVNAME(sc), lock, aml_val2int(&res)); @@ -176,16 +176,14 @@ acpidock_dockctl(struct acpidock_softc *sc, int dock) if (aml_evalname(sc->sc_acpi, sc->sc_devnode->parent, "_DCK", 1, &cmd, &res) != 0) { /* XXX */ - dnprintf(15, "%s: unable to dock %d: %d\n", DEVNAME(sc), - dock, aml_val2int(&res)); + dnprintf(15, "%s: _DCK %d failed\n", DEVNAME(sc), dock); sc->sc_docked = 0; aml_freevalue(&res); return (0); } else { - dnprintf(15, "%s: _DCK %d successful: %d\n", DEVNAME(sc), - dock, aml_val2int(&res)); + dnprintf(15, "%s: _DCK %d successful\n", DEVNAME(sc), dock); sc->sc_docked = 1; aml_freevalue(&res); |