Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 11:07:37 +0000
From:      Paul B Mahol <onemda@gmail.com>
To:        hackers@freebsd.org
Subject:   Remove printf in acpi_tz_sanity()
Message-ID:  <AANLkTimThbVyXmgU76m44GTzR0qGAQuJt-9xwunP-QdQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
This patch removes printf which spams console whenever thermal state
is changed in laptop. Source of problem is in buggy BIOS.

diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c
index 515a742..00866b2 100644
--- a/sys/dev/acpica/acpi_thermal.c
+++ b/sys/dev/acpica/acpi_thermal.c
@@ -697,11 +697,8 @@ acpi_tz_getparam(struct acpi_tz_softc *sc, char
*node, int *data)
 static void
 acpi_tz_sanity(struct acpi_tz_softc *sc, int *val, char *what)
 {
-    if (*val != -1 && (*val < TZ_ZEROC || *val > TZ_ZEROC + 2000)) {
-	device_printf(sc->tz_dev, "%s value is absurd, ignored (%d.%dC)\n",
-		      what, TZ_KELVTOC(*val));
+    if (*val != -1 && (*val < TZ_ZEROC || *val > TZ_ZEROC + 2000))
 	*val = -1;
-    }
 }

 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimThbVyXmgU76m44GTzR0qGAQuJt-9xwunP-QdQ>