Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177455825
D56876.1794449481.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D56876.1794449481.diff
View Options
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -449,7 +449,7 @@
device_printf(sc->dev, "DSM %s: Supported functions: %#" PRIx64 "%s\n",
dsm->name, supported_functions, buf);
- if (missing != 0) {
+ if (VERBOSE() && missing != 0) {
print_bit_field(buf, nitems(buf), missing, "FUNC",
pbf_function_name, dsm);
device_printf(sc->dev, "DSM %s: Does not enumerate expected "
@@ -457,7 +457,7 @@
dsm->name, missing, buf);
}
- if (unknown != 0) {
+ if (VERBOSE() && unknown != 0) {
print_bit_field(buf, nitems(buf), unknown, "FUNC",
pbf_function_name, dsm);
device_printf(sc->dev, "DSM %s: Supports more functions than "
@@ -529,8 +529,11 @@
*/
revision = detail->Package.Elements[0].Integer.Value;
if (revision != 0) {
- device_printf(sc->dev, "Intel: Unknown revision %d for "
- "constraint %zu's detail package\n", revision, i);
+ if (VERBOSE())
+ device_printf(sc->dev,
+ "Intel: Unknown revision %d for "
+ "constraint %zu's detail package\n",
+ revision, i);
sc->constraint_count--;
continue;
}
@@ -566,9 +569,10 @@
constraints = &object->Package.Elements[2];
if (constraints->Package.Count != constraint_count) {
- device_printf(sc->dev,
- "AMD: Constraints: Count mismatch (%d to %zu)\n",
- constraints->Package.Count, constraint_count);
+ if (VERBOSE())
+ device_printf(sc->dev,
+ "AMD: Constraints: Count mismatch (%d to %zu)\n",
+ constraints->Package.Count, constraint_count);
return (ENXIO);
}
@@ -580,9 +584,11 @@
/* Parse the constraint package. */
constraint_obj = &constraints->Package.Elements[i];
if (constraint_obj->Package.Count != 4) {
- device_printf(sc->dev,
- "AMD: Constraint %zu has %d elements, not 4\n",
- i, constraint_obj->Package.Count);
+ if (VERBOSE())
+ device_printf(sc->dev,
+ "AMD: Constraint %zu has %d elements, "
+ "not 4\n",
+ i, constraint_obj->Package.Count);
acpi_spmc_free_constraints(sc);
return (ENXIO);
}
@@ -662,9 +668,11 @@
status = acpi_GetHandleInScope(sc->handle,
__DECONST(char *, constraint->name), &constraint->handle);
if (ACPI_FAILURE(status)) {
- device_printf(sc->dev,
- "Constraints: Cannot get handle for %s, ignoring\n",
- constraint->name);
+ if (VERBOSE())
+ device_printf(sc->dev,
+ "Constraints: Cannot get handle for %s, "
+ "ignoring\n",
+ constraint->name);
constraint->handle = NULL;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 12, 2:11 AM (23 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41669884
Default Alt Text
D56876.1794449481.diff (2 KB)
Attached To
Mode
D56876: acpi_spmc(4): Be less verbose by default
Attached
Detach File
Event Timeline