Skip to contentSkip to conversation

max_refcount too low for starting debug messages

PATCH New Thomas Renninger 1 participant 1 message Mar 2, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 max_refcount too low for starting debug messages

Some big equipped IA64 machines might show large ref count messages.

I increased ACPI_MAX_REFERENCE_COUNT and hid the message as debug.
Feel free to only hide msg, only increase reference count or both ..., not sure which one is best, but at least one thing should be done ...

Subject: Hide ref_cnt debug message

drivers/acpi/utilities/utdelete.c |    8 +++-----
include/acpi/acconfig.h           |    2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)
drivers/acpi/utilities/utdelete.c +3 -5
Index: linux-2.6.16-rc5/drivers/acpi/utilities/utdelete.c
===================================================================
@@ -372,12 +372,10 @@ acpi_ut_update_ref_count(union acpi_oper
 	 * (A deleted object will have a huge reference count)
 	 */
 	if (count > ACPI_MAX_REFERENCE_COUNT) {
-
-		ACPI_WARNING((AE_INFO,
-			      "Large Reference Count (%X) in object %p",
-			      count, object));
+		ACPI_DEBUG_PRINT((ACPI_DB_WARN,
+				  "Large Reference Count (%X) in object %p",
+				  count, object));
 	}
-
 	return;
 }
 
include/acpi/acconfig.h +1 -1
Index: linux-2.6.16-rc5/include/acpi/acconfig.h
===================================================================
@@ -104,7 +104,7 @@
 
 /* Max reference count (for debug only) */
 
-#define ACPI_MAX_REFERENCE_COUNT        0x400
+#define ACPI_MAX_REFERENCE_COUNT        0x800
 
 /* Size of cached memory mapping for system memory operation region */