acpi: make message more descriptive/meaningful
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 handlif (!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 ); }/*
---
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 handlif (!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
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 handlif (!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
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 handlif (!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