From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 21 11:38:49 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D68C106564A for ; Sun, 21 Nov 2010 11:38:49 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 38D418FC12 for ; Sun, 21 Nov 2010 11:38:48 +0000 (UTC) Received: by wwd20 with SMTP id 20so6087677wwd.31 for ; Sun, 21 Nov 2010 03:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=mUE2k0yry1AP3m2X+v/vj8Tti20xh73G2uCX1KxPQ7g=; b=V0/iIJsF8Krbx9dy7qBfMcO2B/qpRn+JAgiBPOAnI8ejauM7QPJMRnR0/QufP7rNAA MPWK2uGwu4490pseu5bdNnRUsAoSbg8KzTGApqDpmwtYzJQqxxPZKbAozdOb0RvNIIRy H66BTe/GZPY0uQO3xFYpeIfceYSvufGrzHFs0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hNew6NiV+qd98Fe8hD38uePKithItKh6PDsyOT3oiVeWlElVgfOFE5Xj0B1rewwi5z Fhe3FgudFw60C8ZPaidB6R283LgeFAsRQWXHV1MZTI1ZHmNBv+LYHDR/l5EOgW5jGDnB nT6qcp0Z8Leo6mFex19U/Y8DwdaNTLF8Lm1Zo= MIME-Version: 1.0 Received: by 10.216.15.75 with SMTP id e53mr2840155wee.107.1290337657362; Sun, 21 Nov 2010 03:07:37 -0800 (PST) Received: by 10.216.234.82 with HTTP; Sun, 21 Nov 2010 03:07:37 -0800 (PST) Date: Sun, 21 Nov 2010 11:07:37 +0000 Message-ID: From: Paul B Mahol To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Remove printf in acpi_tz_sanity() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 11:38:49 -0000 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; - } } /*