Module Name: src Committed By: jruoho Date: Tue Oct 26 04:37:33 UTC 2010
Modified Files: src/sys/dev/acpi: acpi_tz.c src/sys/modules/acpitz: Makefile Log Message: Bump WARNS to 4. To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/sys/dev/acpi/acpi_tz.c cvs rdiff -u -r1.1 -r1.2 src/sys/modules/acpitz/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi_tz.c diff -u src/sys/dev/acpi/acpi_tz.c:1.75 src/sys/dev/acpi/acpi_tz.c:1.76 --- src/sys/dev/acpi/acpi_tz.c:1.75 Mon Oct 25 17:06:58 2010 +++ src/sys/dev/acpi/acpi_tz.c Tue Oct 26 04:37:33 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_tz.c,v 1.75 2010/10/25 17:06:58 jruoho Exp $ */ +/* $NetBSD: acpi_tz.c,v 1.76 2010/10/26 04:37:33 jruoho Exp $ */ /* * Copyright (c) 2003 Jared D. McNeill <jmcne...@invisible.ca> @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.75 2010/10/25 17:06:58 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.76 2010/10/26 04:37:33 jruoho Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -180,7 +180,7 @@ if (ACPI_SUCCESS(rv) && val != 0) sc->sc_zone.tzp = val; - aprint_debug_dev(self, "sample rate %d.%ds\n", + aprint_debug_dev(self, "polling interval %d.%d seconds\n", sc->sc_zone.tzp / 10, sc->sc_zone.tzp % 10); sc->sc_zone_expire = ATZ_ZONE_EXPIRE / sc->sc_zone.tzp; @@ -263,8 +263,8 @@ { device_t dv = opaque; struct acpitz_softc *sc = device_private(dv); - uint32_t tmp, active, fmin, fmax, fcurrent; - int changed, flags, i; + uint32_t tmp, fmin, fmax, fcurrent; + int active, changed, flags, i; sc->sc_zone_expire--; @@ -362,7 +362,7 @@ acpitz_power_zone(sc, sc->sc_active, 0); ACPI_DEBUG_PRINT((ACPI_DB_INFO, "%s: active cooling " - "level %u\n", device_xname(dv), active)); + "level %d\n", device_xname(dv), active)); if (active != ATZ_ACTIVE_NONE) acpitz_power_zone(sc, active, 1); @@ -540,7 +540,7 @@ if (verbose != 0) { comma = 0; - aprint_verbose_dev(dv, ""); + aprint_verbose_dev(dv, "levels: "); if (sc->sc_zone.crt != ATZ_TMP_INVALID) { aprint_verbose("critical %s C", Index: src/sys/modules/acpitz/Makefile diff -u src/sys/modules/acpitz/Makefile:1.1 src/sys/modules/acpitz/Makefile:1.2 --- src/sys/modules/acpitz/Makefile:1.1 Mon Oct 25 17:17:56 2010 +++ src/sys/modules/acpitz/Makefile Tue Oct 26 04:37:33 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2010/10/25 17:17:56 jruoho Exp $ +# $NetBSD: Makefile,v 1.2 2010/10/26 04:37:33 jruoho Exp $ .include "../Makefile.inc" @@ -8,6 +8,6 @@ IOCONF= ACPITZ.ioconf SRCS= acpi_tz.c -WARNS= 0 +WARNS= 4 .include <bsd.kmodule.mk>