Skip to contentSkip to conversation

platform/x86: fujitsu-laptop: update debug message logged by call_fext_func()

PATCH In review Michał Kępień 3 participants 3 messages Apr 6, 2017 – Apr 7, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: fujitsu-laptop: update debug message logged by call_fext_func()

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.

---
This patch is a follow-up to v1 of the call_fext_func() cleanup series and as such, it should be applied to for-next.

 drivers/platform/x86/fujitsu-laptop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/fujitsu-laptop.c +1 -1
index 26149f58dba7..928778ccc4c1 100644
@@ -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;
 	}
 
Signature · 1 line
2.12.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Micha?? K??pie??

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.

---
This patch is a follow-up to v1 of the call_fext_func() cleanup series and as such, it should be applied to for-next.

 drivers/platform/x86/fujitsu-laptop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/fujitsu-laptop.c +0 -0
index 26149f58dba7..928778ccc4c1 100644

drivers/platform/x86/fujitsu-laptop.c static int call_fext_func(int func, int op, int feature, int state) · line 237

Quoted 7 lines
drivers/platform/x86/fujitsu-laptop.c +1 -1
@@ -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;
 	}

As per discussions on the list, this change is fine, is consistent with the generic nature of possible failure modes and makes sense in the context of the other recent changes.

Regards
jonathan

#2 lore raw
Quoted 30 lines · Jonathan Woithe
Quoted 17 lines · Micha?? K??pie??

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.

---
This patch is a follow-up to v1 of the call_fext_func() cleanup series and as such, it should be applied to for-next.

 drivers/platform/x86/fujitsu-laptop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/fujitsu-laptop.c +0 -0
index 26149f58dba7..928778ccc4c1 100644

drivers/platform/x86/fujitsu-laptop.c static int call_fext_func(int func, int op, int feature, int state) · line 237

Quoted 7 lines
drivers/platform/x86/fujitsu-laptop.c +1 -1
@@ -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;
 	}

As per discussions on the list, this change is fine, is consistent with the generic nature of possible failure modes and makes sense in the context of the other recent changes.

Quoted 1 line

Queued to testing, thanks.

Signature · 2 lines
Darren Hart
VMware Open Source Technology Center