Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi In ATZ_F_VERBOSE mode, log a message whenever t...



details:   https://anonhg.NetBSD.org/src/rev/925e50bac866
branches:  trunk
changeset: 750312:925e50bac866
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Dec 24 00:26:28 2009 +0000

description:
In ATZ_F_VERBOSE mode, log a message whenever the active cooling level
changes, even when the new level is ATZ_ACTIVE_NONE

diffstat:

 sys/dev/acpi/acpi_tz.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r b14ecb8ac6f9 -r 925e50bac866 sys/dev/acpi/acpi_tz.c
--- a/sys/dev/acpi/acpi_tz.c    Wed Dec 23 20:56:18 2009 +0000
+++ b/sys/dev/acpi/acpi_tz.c    Thu Dec 24 00:26:28 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_tz.c,v 1.51 2009/12/23 02:29:46 pgoyette Exp $ */
+/* $NetBSD: acpi_tz.c,v 1.52 2009/12/24 00:26:28 pgoyette Exp $ */
 
 /*
  * Copyright (c) 2003 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.51 2009/12/23 02:29:46 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.52 2009/12/24 00:26:28 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -344,7 +344,9 @@
                                        printf("%s: active cooling level %u\n",
                                            device_xname(dv), active);
                                acpitz_power_zone(sc, active, 1);
-                       }
+                       } else if (sc->sc_flags & ATZ_F_VERBOSE)
+                               printf("%s: no active cooling level\n",
+                                   device_xname(dv));
 
                        sc->sc_active = active;
                }



Home | Main Index | Thread Index | Old Index