From: Henrique de Moraes Holschuh Date: Sun, 16 May 2010 22:45:48 +0000 (-0300) Subject: thinkpad-acpi: explain errors from acpi_install_notify_handler X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72f19921217c2267adc65cbe69c63da970578a14;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 --- diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index da3a70b280f..a39f159d4f2 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) "handling %s events\n", ibm->name); } else { printk(TPACPI_ERR - "acpi_install_notify_handler(%s) failed: %d\n", - ibm->name, status); + "acpi_install_notify_handler(%s) failed: %s\n", + ibm->name, acpi_format_exception(status)); } return -ENODEV; }