summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-11-24 21:37:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-11-24 21:37:43 +0000
commiteb3713262438e6f33f5d72f04098a38de8d74b09 (patch)
tree8dbea6dac71b69aea4e24b1377766aaedaa18fbf /sys/dev/acpi
parent6d9b3a0771ef214f1cac6d243d9bd0e4a9176d5c (diff)
Reporting battery insert/removal was debug code. dmesg is not
a place to spam informational messages about unimportant events. That is what the sensor framework is for (and that is already done) ok kettenis
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpibat.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/acpi/acpibat.c b/sys/dev/acpi/acpibat.c
index f3f390f3d4e..ea6e1876b07 100644
--- a/sys/dev/acpi/acpibat.c
+++ b/sys/dev/acpi/acpibat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpibat.c,v 1.54 2009/03/11 21:54:15 jordan Exp $ */
+/* $OpenBSD: acpibat.c,v 1.55 2009/11/24 21:37:42 deraadt Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -406,16 +406,10 @@ acpibat_notify(struct aml_node *node, int notify_type, void *arg)
/* Check if installed state of battery has changed */
if (aml_evalinteger(sc->sc_acpi, node, "_STA", 0, NULL, &sta) == 0) {
present = sta & STA_BATTERY;
- if (!sc->sc_bat_present && present) {
- printf("%s: %s inserted\n", DEVNAME(sc),
- sc->sc_devnode->name);
+ if (!sc->sc_bat_present && present)
sc->sc_bat_present = 1;
- }
- else if (sc->sc_bat_present && !present) {
- printf("%s: %s removed\n", DEVNAME(sc),
- sc->sc_devnode->name);
+ else if (sc->sc_bat_present && !present)
sc->sc_bat_present = 0;
- }
}
switch (notify_type) {
case 0x80: /* _BST changed */