aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Corbacho <carlos@strangeworlds.co.uk>2008-03-12 16:12:50 -0400
committerLen Brown <len.brown@intel.com>2008-03-12 16:24:12 -0400
commit8d039bc7f3d2330787eaa7a392f5e6489f1544d5 (patch)
treeef851339a1a4ca35e4773f5146787a90a77e48b7
parenta527f2d7fe58ce95bfec998f3dc6f658c777a2f2 (diff)
acer-wmi: Make device detection error messages more descriptive
The current device detection error messages are all copy & pasted - make them more descriptive so it's easier to see where in the code a problem occurs. Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--drivers/misc/acer-wmi.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
index 49846bd2b5c8..9af733b3f2aa 100644
--- a/drivers/misc/acer-wmi.c
+++ b/drivers/misc/acer-wmi.c
@@ -1052,11 +1052,12 @@ static int __init acer_wmi_init(void)
1052 1052
1053 if (wmi_has_guid(WMID_GUID2) && interface) { 1053 if (wmi_has_guid(WMID_GUID2) && interface) {
1054 if (ACPI_FAILURE(WMID_set_capabilities())) { 1054 if (ACPI_FAILURE(WMID_set_capabilities())) {
1055 printk(ACER_ERR "Unable to detect available devices\n"); 1055 printk(ACER_ERR "Unable to detect available WMID "
1056 "devices\n");
1056 return -ENODEV; 1057 return -ENODEV;
1057 } 1058 }
1058 } else if (!wmi_has_guid(WMID_GUID2) && interface) { 1059 } else if (!wmi_has_guid(WMID_GUID2) && interface) {
1059 printk(ACER_ERR "Unable to detect available devices\n"); 1060 printk(ACER_ERR "No WMID device detection method found\n");
1060 return -ENODEV; 1061 return -ENODEV;
1061 } 1062 }
1062 1063
@@ -1064,7 +1065,8 @@ static int __init acer_wmi_init(void)
1064 interface = &AMW0_interface; 1065 interface = &AMW0_interface;
1065 1066
1066 if (ACPI_FAILURE(AMW0_set_capabilities())) { 1067 if (ACPI_FAILURE(AMW0_set_capabilities())) {
1067 printk(ACER_ERR "Unable to detect available devices\n"); 1068 printk(ACER_ERR "Unable to detect available AMW0 "
1069 "devices\n");
1068 return -ENODEV; 1070 return -ENODEV;
1069 } 1071 }
1070 } 1072 }
@@ -1075,8 +1077,8 @@ static int __init acer_wmi_init(void)
1075 find_quirks(); 1077 find_quirks();
1076 1078
1077 if (!interface) { 1079 if (!interface) {
1078 printk(ACER_ERR "No or unsupported WMI interface, unable to "); 1080 printk(ACER_ERR "No or unsupported WMI interface, unable to "
1079 printk(KERN_CONT "load.\n"); 1081 "load\n");
1080 return -ENODEV; 1082 return -ENODEV;
1081 } 1083 }
1082 1084