From 1aea50047b7a4d1930267c4ab5ea8857a080dc34 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 20 Jul 2010 20:21:02 +0000 Subject: [PATCH] print the temperature readings that make us go down; ok kettenis --- sys/dev/acpi/acpitz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c index 54cefb4df01..b31f17400ea 100644 --- a/sys/dev/acpi/acpitz.c +++ b/sys/dev/acpi/acpitz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpitz.c,v 1.36 2010/07/20 12:12:19 deraadt Exp $ */ +/* $OpenBSD: acpitz.c,v 1.37 2010/07/20 20:21:02 deraadt Exp $ */ /* * Copyright (c) 2006 Can Erkin Acar * Copyright (c) 2005 Marco Peereboom @@ -322,8 +322,8 @@ acpitz_refresh(void *arg) /* critical trip points */ if (sc->sc_crt != -1 && sc->sc_crt <= sc->sc_tmp) { /* do critical shutdown */ - printf("%s: Critical temperature, shutting down\n", - DEVNAME(sc)); + printf("%s: Critical temperature %dC (%dK), shutting down\n", + DEVNAME(sc), KTOC(sc->sc_tmp), sc->sc_tmp); psignal(initproc, SIGUSR2); } if (sc->sc_hot != -1 && sc->sc_hot <= sc->sc_tmp) { -- 2.20.1