platform/x86: fujitsu-laptop: update debug message logged by call_fext_func()
authorMichał Kępień <kernel@kempniu.pl>
Thu, 6 Apr 2017 06:46:10 +0000 (08:46 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:16:04 +0000 (10:16 -0700)
Update debug message logged when the acpi_evaluate_integer() call inside
call_fext_func() fails so that it covers a broader set of possible
errors.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/fujitsu-laptop.c

index 26149f58dba7f68502205f0f4c23e1a91a981d8e..928778ccc4c16bb4f20e0c6b49a9b1faf3909a9e 100644 (file)
@@ -232,7 +232,7 @@ static int call_fext_func(int func, int op, int feature, int state)
        status = acpi_evaluate_integer(fujitsu_laptop->acpi_handle, "FUNC",
                                       &arg_list, &value);
        if (ACPI_FAILURE(status)) {
-               vdbg_printk(FUJLAPTOP_DBG_ERROR, "FUNC interface is not present\n");
+               vdbg_printk(FUJLAPTOP_DBG_ERROR, "Failed to evaluate FUNC\n");
                return -ENODEV;
        }