aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/executer/exresnte.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/executer/exresnte.c')
-rw-r--r--drivers/acpi/executer/exresnte.c50
1 files changed, 19 insertions, 31 deletions
diff --git a/drivers/acpi/executer/exresnte.c b/drivers/acpi/executer/exresnte.c
index ff5d8f97e8eb..a5cca7eda210 100644
--- a/drivers/acpi/executer/exresnte.c
+++ b/drivers/acpi/executer/exresnte.c
@@ -6,7 +6,7 @@
6 *****************************************************************************/ 6 *****************************************************************************/
7 7
8/* 8/*
9 * Copyright (C) 2000 - 2005, R. Byron Moore 9 * Copyright (C) 2000 - 2006, R. Byron Moore
10 * All rights reserved. 10 * All rights reserved.
11 * 11 *
12 * Redistribution and use in source and binary forms, with or without 12 * Redistribution and use in source and binary forms, with or without
@@ -122,8 +122,7 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr,
122 } 122 }
123 123
124 if (!source_desc) { 124 if (!source_desc) {
125 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 125 ACPI_REPORT_ERROR(("No object attached to node %p\n", node));
126 "No object attached to node %p\n", node));
127 return_ACPI_STATUS(AE_AML_NO_OPERAND); 126 return_ACPI_STATUS(AE_AML_NO_OPERAND);
128 } 127 }
129 128
@@ -135,10 +134,9 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr,
135 case ACPI_TYPE_PACKAGE: 134 case ACPI_TYPE_PACKAGE:
136 135
137 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_PACKAGE) { 136 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_PACKAGE) {
138 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 137 ACPI_REPORT_ERROR(("Object not a Package, type %s\n",
139 "Object not a Package, type %s\n", 138 acpi_ut_get_object_type_name
140 acpi_ut_get_object_type_name 139 (source_desc)));
141 (source_desc)));
142 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 140 return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
143 } 141 }
144 142
@@ -154,10 +152,9 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr,
154 case ACPI_TYPE_BUFFER: 152 case ACPI_TYPE_BUFFER:
155 153
156 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_BUFFER) { 154 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_BUFFER) {
157 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 155 ACPI_REPORT_ERROR(("Object not a Buffer, type %s\n",
158 "Object not a Buffer, type %s\n", 156 acpi_ut_get_object_type_name
159 acpi_ut_get_object_type_name 157 (source_desc)));
160 (source_desc)));
161 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 158 return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
162 } 159 }
163 160
@@ -173,10 +170,9 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr,
173 case ACPI_TYPE_STRING: 170 case ACPI_TYPE_STRING:
174 171
175 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_STRING) { 172 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_STRING) {
176 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 173 ACPI_REPORT_ERROR(("Object not a String, type %s\n",
177 "Object not a String, type %s\n", 174 acpi_ut_get_object_type_name
178 acpi_ut_get_object_type_name 175 (source_desc)));
179 (source_desc)));
180 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 176 return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
181 } 177 }
182 178
@@ -189,10 +185,9 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr,
189 case ACPI_TYPE_INTEGER: 185 case ACPI_TYPE_INTEGER:
190 186
191 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_INTEGER) { 187 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_INTEGER) {
192 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 188 ACPI_REPORT_ERROR(("Object not a Integer, type %s\n",
193 "Object not a Integer, type %s\n", 189 acpi_ut_get_object_type_name
194 acpi_ut_get_object_type_name 190 (source_desc)));
195 (source_desc)));
196 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 191 return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
197 } 192 }
198 193
@@ -236,9 +231,8 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr,
236 231
237 case ACPI_TYPE_ANY: 232 case ACPI_TYPE_ANY:
238 233
239 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 234 ACPI_REPORT_ERROR(("Untyped entry %p, no attached object!\n",
240 "Untyped entry %p, no attached object!\n", 235 node));
241 node));
242 236
243 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); /* Cannot be AE_TYPE */ 237 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); /* Cannot be AE_TYPE */
244 238
@@ -257,12 +251,7 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr,
257 default: 251 default:
258 /* No named references are allowed here */ 252 /* No named references are allowed here */
259 253
260 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 254 ACPI_REPORT_ERROR(("Unsupported Reference opcode %X (%s)\n", source_desc->reference.opcode, acpi_ps_get_opcode_name(source_desc->reference.opcode)));
261 "Unsupported Reference opcode %X (%s)\n",
262 source_desc->reference.opcode,
263 acpi_ps_get_opcode_name(source_desc->
264 reference.
265 opcode)));
266 255
267 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 256 return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
268 } 257 }
@@ -272,9 +261,8 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr,
272 261
273 /* Default case is for unknown types */ 262 /* Default case is for unknown types */
274 263
275 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 264 ACPI_REPORT_ERROR(("Node %p - Unknown object type %X\n",
276 "Node %p - Unknown object type %X\n", 265 node, entry_type));
277 node, entry_type));
278 266
279 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 267 return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
280 268