Skip to contentSkip to conversation

acpi: make message more descriptive/meaningful

PATCH In review Randy.Dunlap 3 participants 4 messages Feb 7, 2006 – Feb 9, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi: make message more descriptive/meaningful

[resend]

From: Jae-hyeon Park <[email protected]>

Identify which device is not power-manageable to make the message more useful.

---
 drivers/acpi/bus.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
drivers/acpi/bus.c +2 -1
@@ -198,7 +198,8 @@ int acpi_bus_set_power(acpi_handle handl
 
 	if (!device->flags.power_manageable) {
 		ACPI_DEBUG_PRINT((ACPI_DB_WARN,
-				  "Device is not power manageable\n"));
+				  "Device '%s' is not power manageable\n",
+					device->kobj.name));
 		return_VALUE(-ENODEV);
 	}
 	/*

---

#1 lore raw

drivers/acpi/bus.c int acpi_bus_set_power(acpi_handle handl · line 202

Quoted 13 lines · Randy.Dunlap

Identify which device is not power-manageable to make the message more useful.

drivers/acpi/bus.c +2 -1
@@ -198,7 +198,8 @@ int acpi_bus_set_power(acpi_handle handl
 
 	if (!device->flags.power_manageable) {
 		ACPI_DEBUG_PRINT((ACPI_DB_WARN,
-				  "Device is not power manageable\n"));
+				  "Device '%s' is not power manageable\n",
+					device->kobj.name));

This is good information, but does it have to come in such a scary message? It appears that something is wrong with the device, when in fact, it just doesn't support an optional capability.

Could we demote the message to e.g. ACPI_DB_INFO?

Thanks,

Patrick

#2 lore raw
Quoted 21 lines · Patrick Mochel

drivers/acpi/bus.c int acpi_bus_set_power(acpi_handle handl · line 202

Quoted 13 lines · Randy.Dunlap

Identify which device is not power-manageable to make the message more useful.

drivers/acpi/bus.c +2 -1
@@ -198,7 +198,8 @@ int acpi_bus_set_power(acpi_handle handl
 
 	if (!device->flags.power_manageable) {
 		ACPI_DEBUG_PRINT((ACPI_DB_WARN,
-				  "Device is not power manageable\n"));
+				  "Device '%s' is not power manageable\n",
+					device->kobj.name));

This is good information, but does it have to come in such a scary message? It appears that something is wrong with the device, when in fact, it just doesn't support an optional capability.

Quoted 1 line

Could we demote the message to e.g. ACPI_DB_INFO?

Sure, fine with me.

Signature · 1 line
~Randy
#3 lore raw
Quoted 21 lines · Randy.Dunlap
Quoted 19 lines · Patrick Mochel

drivers/acpi/bus.c int acpi_bus_set_power(acpi_handle handl · line 202

Quoted 12 lines · Randy.Dunlap

Identify which device is not power-manageable to make the message more useful.

drivers/acpi/bus.c +2 -1
@@ -198,7 +198,8 @@ int acpi_bus_set_power(acpi_handle handl
 
 	if (!device->flags.power_manageable) {
 		ACPI_DEBUG_PRINT((ACPI_DB_WARN,
-				  "Device is not power manageable\n"));
+				  "Device '%s' is not power manageable\n",
+					device->kobj.name));

This is good information, but does it have to come in such a scary message? It appears that something is wrong with the device, when in fact, it just doesn't support an optional capability.

Quoted 2 lines
Quoted 1 line

Could we demote the message to e.g. ACPI_DB_INFO?

I already moved this one with the big debug to error/warn ... patch. It should now be ACPI_DB_INFO, but I did not add the device name though...

Thomas