aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/hotkey.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2006-06-26 23:41:38 -0400
committerLen Brown <len.brown@intel.com>2006-06-27 00:01:06 -0400
commit6468463abd7051fcc29f3ee7c931f9bbbb26f5a4 (patch)
treed18eae04fe6c8f7d257077cc6056cd9c6f424e0d /drivers/acpi/hotkey.c
parentcece92969762b8ed7930d4e23008b76b06411dee (diff)
ACPI: un-export ACPI_ERROR() -- use printk(KERN_ERR...)
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/hotkey.c')
-rw-r--r--drivers/acpi/hotkey.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/acpi/hotkey.c b/drivers/acpi/hotkey.c
index f5da971759a..393dbbca4e8 100644
--- a/drivers/acpi/hotkey.c
+++ b/drivers/acpi/hotkey.c
@@ -768,7 +768,7 @@ static ssize_t hotkey_write_config(struct file *file,
768 768
769 if (copy_from_user(config_record, buffer, count)) { 769 if (copy_from_user(config_record, buffer, count)) {
770 kfree(config_record); 770 kfree(config_record);
771 ACPI_ERROR((AE_INFO, "Invalid data")); 771 printk(KERN_ERR PREFIX "Invalid data\n");
772 return_VALUE(-EINVAL); 772 return_VALUE(-EINVAL);
773 } 773 }
774 config_record[count] = 0; 774 config_record[count] = 0;
@@ -789,7 +789,7 @@ static ssize_t hotkey_write_config(struct file *file,
789 kfree(bus_method); 789 kfree(bus_method);
790 kfree(action_handle); 790 kfree(action_handle);
791 kfree(method); 791 kfree(method);
792 ACPI_ERROR((AE_INFO, "Invalid data format ret=%d", ret)); 792 printk(KERN_ERR PREFIX "Invalid data format ret=%d\n", ret);
793 return_VALUE(-EINVAL); 793 return_VALUE(-EINVAL);
794 } 794 }
795 795
@@ -802,7 +802,7 @@ static ssize_t hotkey_write_config(struct file *file,
802 tmp = get_hotkey_by_event(&global_hotkey_list, 802 tmp = get_hotkey_by_event(&global_hotkey_list,
803 internal_event_num); 803 internal_event_num);
804 if (!tmp) 804 if (!tmp)
805 ACPI_ERROR((AE_INFO, "Invalid key")); 805 printk(KERN_ERR PREFIX "Invalid key\n");
806 else 806 else
807 memcpy(key, tmp, sizeof(union acpi_hotkey)); 807 memcpy(key, tmp, sizeof(union acpi_hotkey));
808 goto cont_cmd; 808 goto cont_cmd;
@@ -824,7 +824,7 @@ static ssize_t hotkey_write_config(struct file *file,
824 else 824 else
825 free_poll_hotkey_buffer(key); 825 free_poll_hotkey_buffer(key);
826 kfree(key); 826 kfree(key);
827 ACPI_ERROR((AE_INFO, "Invalid hotkey")); 827 printk(KERN_ERR PREFIX "Invalid hotkey\n");
828 return_VALUE(-EINVAL); 828 return_VALUE(-EINVAL);
829 } 829 }
830 830
@@ -858,7 +858,7 @@ static ssize_t hotkey_write_config(struct file *file,
858 else 858 else
859 free_poll_hotkey_buffer(key); 859 free_poll_hotkey_buffer(key);
860 kfree(key); 860 kfree(key);
861 ACPI_ERROR((AE_INFO, "invalid key")); 861 printk(KERN_ERR PREFIX "invalid key\n");
862 return_VALUE(-EINVAL); 862 return_VALUE(-EINVAL);
863} 863}
864 864
@@ -903,7 +903,7 @@ static int read_acpi_int(acpi_handle handle, const char *method,
903 val->integer.value = out_obj.integer.value; 903 val->integer.value = out_obj.integer.value;
904 val->type = out_obj.type; 904 val->type = out_obj.type;
905 } else 905 } else
906 ACPI_ERROR((AE_INFO, "null val pointer")); 906 printk(KERN_ERR PREFIX "null val pointer\n");
907 return_VALUE((status == AE_OK) 907 return_VALUE((status == AE_OK)
908 && (out_obj.type == ACPI_TYPE_INTEGER)); 908 && (out_obj.type == ACPI_TYPE_INTEGER));
909} 909}
@@ -950,14 +950,14 @@ static ssize_t hotkey_execute_aml_method(struct file *file,
950 950
951 if (copy_from_user(arg, buffer, count)) { 951 if (copy_from_user(arg, buffer, count)) {
952 kfree(arg); 952 kfree(arg);
953 ACPI_ERROR((AE_INFO, "Invalid argument 2")); 953 printk(KERN_ERR PREFIX "Invalid argument 2\n");
954 return_VALUE(-EINVAL); 954 return_VALUE(-EINVAL);
955 } 955 }
956 956
957 if (sscanf(arg, "%d:%d:%d:%d", &event, &method_type, &type, &value) != 957 if (sscanf(arg, "%d:%d:%d:%d", &event, &method_type, &type, &value) !=
958 4) { 958 4) {
959 kfree(arg); 959 kfree(arg);
960 ACPI_ERROR((AE_INFO, "Invalid argument 3")); 960 printk(KERN_ERR PREFIX "Invalid argument 3\n");
961 return_VALUE(-EINVAL); 961 return_VALUE(-EINVAL);
962 } 962 }
963 kfree(arg); 963 kfree(arg);