Subject: ACPI dock: Use ACPI_EXCEPTION instead of printk(KERN_ERR
authorThomas Renninger <trenn@suse.de>
Sat, 11 Oct 2008 04:15:04 +0000 (00:15 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 11 Oct 2008 04:15:04 +0000 (00:15 -0400)
lenb: stripped patch down to what still applied to new dock.c

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dock.c

index b7d15818215c2f625ee9debc401eb5594ab0b054..913bb1e89dd60016c09d80bfc2585dc7a1b0f9b8 100644 (file)
@@ -488,8 +488,9 @@ static void handle_dock(struct dock_station *ds, int dock)
        arg.integer.value = dock;
        status = acpi_evaluate_object(ds->handle, "_DCK", &arg_list, &buffer);
        if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
-               printk(KERN_ERR PREFIX "%s - failed to execute _DCK\n",
-                        (char *)name_buffer.pointer);
+               ACPI_EXCEPTION((AE_INFO, status, "%s - failed to execute"
+                       " _DCK\n", (char *)name_buffer.pointer));
+
        kfree(buffer.pointer);
        kfree(name_buffer.pointer);
 }