summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2007-01-15 18:17:36 +0000
committernjl <njl@FreeBSD.org>2007-01-15 18:17:36 +0000
commitfd60f52ecc4bdc82b0bc144dd99dac68dbca2105 (patch)
tree614a5c90c0f76a44f1e02ad1bee3665139830189
parent6b5470947c8c121de7ab3b8dfcbc7b7cf55807a3 (diff)
downloadFreeBSD-src-fd60f52ecc4bdc82b0bc144dd99dac68dbca2105.zip
FreeBSD-src-fd60f52ecc4bdc82b0bc144dd99dac68dbca2105.tar.gz
Clean up some debug prints from last commit and move one under boot -v.
Reminded by: bruno
-rw-r--r--sys/dev/acpica/acpi_cpu.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index 4ade927..8e4d46d 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -480,7 +480,8 @@ acpi_cpu_cx_probe(struct acpi_cpu_softc *sc)
* was an error parsing it. Switch back to generic mode.
*/
cpu_cx_generic = TRUE;
- device_printf(sc->cpu_dev, "Switching to generic Cx mode\n");
+ if (bootverbose)
+ device_printf(sc->cpu_dev, "switching to generic Cx mode\n");
}
/*
@@ -574,20 +575,18 @@ acpi_cpu_cx_cst(struct acpi_cpu_softc *sc)
buf.Pointer = NULL;
buf.Length = ACPI_ALLOCATE_BUFFER;
status = AcpiEvaluateObject(sc->cpu_handle, "_CST", NULL, &buf);
- if (ACPI_FAILURE(status)) {
- device_printf(sc->cpu_dev, "Unable to find _CST method\n");
+ if (ACPI_FAILURE(status))
return (ENXIO);
- }
/* _CST is a package with a count and at least one Cx package. */
top = (ACPI_OBJECT *)buf.Pointer;
if (!ACPI_PKG_VALID(top, 2) || acpi_PkgInt32(top, 0, &count) != 0) {
- device_printf(sc->cpu_dev, "Invalid _CST package\n");
+ device_printf(sc->cpu_dev, "invalid _CST package\n");
AcpiOsFree(buf.Pointer);
return (ENXIO);
}
if (count != top->Package.Count - 1) {
- device_printf(sc->cpu_dev, "Invalid _CST state count (%d != %d)\n",
+ device_printf(sc->cpu_dev, "invalid _CST state count (%d != %d)\n",
count, top->Package.Count - 1);
count = top->Package.Count - 1;
}
OpenPOWER on IntegriCloud