diff options
author | bruno <bruno@FreeBSD.org> | 2005-12-12 11:15:20 +0000 |
---|---|---|
committer | bruno <bruno@FreeBSD.org> | 2005-12-12 11:15:20 +0000 |
commit | 8e7b5a27f965278e981fff7c3d3f063c5fc89eb7 (patch) | |
tree | 27985dac1f4c56a3805020a03c67969332b84a89 /sys/dev/acpica/acpi_perf.c | |
parent | 224a7e6475245a4dcc994a7368a5e38452b02b3a (diff) | |
download | FreeBSD-src-8e7b5a27f965278e981fff7c3d3f063c5fc89eb7.zip FreeBSD-src-8e7b5a27f965278e981fff7c3d3f063c5fc89eb7.tar.gz |
Don't flood kernel logs with "invalid _PSS package" messages.
Approved by: njl, imp (mentor)
Diffstat (limited to 'sys/dev/acpica/acpi_perf.c')
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index dd07653..4d195b6 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -244,6 +244,7 @@ acpi_perf_evaluate(device_t dev) ACPI_OBJECT *pkg, *res; ACPI_STATUS status; int count, error, i, j; + static int once = 1; uint32_t *p; /* Get the control values and parameters for each state. */ @@ -276,7 +277,10 @@ acpi_perf_evaluate(device_t dev) for (i = 0; i < sc->px_count; i++) { res = &pkg->Package.Elements[i]; if (!ACPI_PKG_VALID(res, 6)) { - device_printf(dev, "invalid _PSS package\n"); + if (once) { + once = 0; + device_printf(dev, "invalid _PSS package\n"); + } continue; } |