diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2010-05-16 18:45:48 -0400 |
---|---|---|
committer | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2010-05-16 18:45:48 -0400 |
commit | 72f19921217c2267adc65cbe69c63da970578a14 (patch) | |
tree | dafdaec1d1f792d9a004372757fe47ad91267e3a /drivers/platform | |
parent | 263f4a30e4f1dc5385650738c1dcf3728036ecc4 (diff) |
thinkpad-acpi: explain errors from acpi_install_notify_handler
Log more human-friendly errors instead of numeric values when
setup_acpi_notify() fails to install a notification handler.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index da3a70b280f2..a39f159d4f2f 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -785,8 +785,8 @@ static int __init setup_acpi_notify(struct ibm_struct *ibm) | |||
785 | "handling %s events\n", ibm->name); | 785 | "handling %s events\n", ibm->name); |
786 | } else { | 786 | } else { |
787 | printk(TPACPI_ERR | 787 | printk(TPACPI_ERR |
788 | "acpi_install_notify_handler(%s) failed: %d\n", | 788 | "acpi_install_notify_handler(%s) failed: %s\n", |
789 | ibm->name, status); | 789 | ibm->name, acpi_format_exception(status)); |
790 | } | 790 | } |
791 | return -ENODEV; | 791 | return -ENODEV; |
792 | } | 792 | } |