Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Pretty printing.



details:   https://anonhg.NetBSD.org/src/rev/92398684e58a
branches:  trunk
changeset: 757025:92398684e58a
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Wed Aug 11 10:44:07 2010 +0000

description:
Pretty printing.

diffstat:

 sys/dev/acpi/acpi_cpu_cstate.c |  10 +++++-----
 sys/dev/acpi/acpi_cpu_pstate.c |   8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (80 lines):

diff -r 75d1ededa1a8 -r 92398684e58a sys/dev/acpi/acpi_cpu_cstate.c
--- a/sys/dev/acpi/acpi_cpu_cstate.c    Wed Aug 11 10:32:42 2010 +0000
+++ b/sys/dev/acpi/acpi_cpu_cstate.c    Wed Aug 11 10:44:07 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_cstate.c,v 1.21 2010/08/10 05:22:07 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_cstate.c,v 1.22 2010/08/11 10:44:07 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.21 2010/08/10 05:22:07 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.22 2010/08/11 10:44:07 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -126,7 +126,7 @@
                switch (cs->cs_method) {
 
                case ACPICPU_C_STATE_HALT:
-                       str = "HALT";
+                       str = "HLT";
                        break;
 
                case ACPICPU_C_STATE_FFH:
@@ -134,14 +134,14 @@
                        break;
 
                case ACPICPU_C_STATE_SYSIO:
-                       str = "SYSIO";
+                       str = "I/O";
                        break;
 
                default:
                        panic("NOTREACHED");
                }
 
-               aprint_debug_dev(sc->sc_dev, "C%d: %5s, "
+               aprint_debug_dev(sc->sc_dev, "C%d: %3s, "
                    "lat %3u us, pow %5u mW, addr 0x%06x, flags 0x%02x\n",
                    i, str, cs->cs_latency, cs->cs_power,
                    (uint32_t)cs->cs_addr, cs->cs_flags);
diff -r 75d1ededa1a8 -r 92398684e58a sys/dev/acpi/acpi_cpu_pstate.c
--- a/sys/dev/acpi/acpi_cpu_pstate.c    Wed Aug 11 10:32:42 2010 +0000
+++ b/sys/dev/acpi/acpi_cpu_pstate.c    Wed Aug 11 10:44:07 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_pstate.c,v 1.7 2010/08/10 02:42:05 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_pstate.c,v 1.8 2010/08/11 10:44:07 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_pstate.c,v 1.7 2010/08/10 02:42:05 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_pstate.c,v 1.8 2010/08/11 10:44:07 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/evcnt.h>
@@ -105,7 +105,7 @@
        const char *str;
        uint32_t i;
 
-       str = (method != ACPI_ADR_SPACE_SYSTEM_IO) ? "FFH" : "SYSIO";
+       str = (method != ACPI_ADR_SPACE_SYSTEM_IO) ? "FFH" : "I/O";
 
        for (i = 0; i < sc->sc_pstate_count; i++) {
 
@@ -114,7 +114,7 @@
                if (ps->ps_freq == 0)
                        continue;
 
-               aprint_debug_dev(sc->sc_dev, "P%d: %5s, "
+               aprint_debug_dev(sc->sc_dev, "P%d: %3s, "
                    "lat %3u us, pow %5u mW, %4u MHz\n",
                    i, str, ps->ps_latency, ps->ps_power, ps->ps_freq);
        }



Home | Main Index | Thread Index | Old Index