diff options
author | Bob Moore <robert.moore@intel.com> | 2006-01-13 16:22:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-20 02:23:50 -0500 |
commit | 4a90c7e86202f46fa9af011bdbcdf36e355d1721 (patch) | |
tree | 3784cffb2166330d6f94ea53996fbeef36f58ce3 /drivers/acpi/resources | |
parent | 3c5c363826e435cf4d54d917202567e5b57cae5f (diff) |
[ACPI] ACPICA 20060113
Added 2006 copyright.
At SuSE's suggestion, enabled all error messages
without enabling function tracing, ie with CONFIG_ACPI_DEBUG=n
Replaced all instances of the ACPI_DEBUG_PRINT macro invoked at
the ACPI_DB_ERROR and ACPI_DB_WARN debug levels with
the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
respectively. This preserves all error and warning messages
in the non-debug version of the ACPICA code (this has been
referred to as the "debug lite" option.) Over 200 cases
were converted to create a total of over 380 error/warning
messages across the ACPICA code. This increases the code
and data size of the default non-debug version by about 13K.
Added ACPI_NO_ERROR_MESSAGES flag to enable deleting all messages.
The size of the debug version remains about the same.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/resources')
-rw-r--r-- | drivers/acpi/resources/rsaddr.c | 2 | ||||
-rw-r--r-- | drivers/acpi/resources/rscalc.c | 2 | ||||
-rw-r--r-- | drivers/acpi/resources/rscreate.c | 42 | ||||
-rw-r--r-- | drivers/acpi/resources/rsdump.c | 2 | ||||
-rw-r--r-- | drivers/acpi/resources/rsinfo.c | 2 | ||||
-rw-r--r-- | drivers/acpi/resources/rsio.c | 2 | ||||
-rw-r--r-- | drivers/acpi/resources/rsirq.c | 2 | ||||
-rw-r--r-- | drivers/acpi/resources/rslist.c | 6 | ||||
-rw-r--r-- | drivers/acpi/resources/rsmemory.c | 2 | ||||
-rw-r--r-- | drivers/acpi/resources/rsmisc.c | 9 | ||||
-rw-r--r-- | drivers/acpi/resources/rsutils.c | 2 | ||||
-rw-r--r-- | drivers/acpi/resources/rsxface.c | 2 |
12 files changed, 22 insertions, 53 deletions
diff --git a/drivers/acpi/resources/rsaddr.c b/drivers/acpi/resources/rsaddr.c index 4ac942badbc0..8fa3213ce000 100644 --- a/drivers/acpi/resources/rsaddr.c +++ b/drivers/acpi/resources/rsaddr.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/resources/rscalc.c b/drivers/acpi/resources/rscalc.c index c2c4d9079c6c..1dfa6906d455 100644 --- a/drivers/acpi/resources/rscalc.c +++ b/drivers/acpi/resources/rscalc.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/resources/rscreate.c b/drivers/acpi/resources/rscreate.c index 6c7c6c560635..7f46ca0bf33a 100644 --- a/drivers/acpi/resources/rscreate.c +++ b/drivers/acpi/resources/rscreate.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -207,21 +207,14 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
207 | /* Each element of the top-level package must also be a package */ | 207 | /* Each element of the top-level package must also be a package */ |
208 | 208 | ||
209 | if (ACPI_GET_OBJECT_TYPE(*top_object_list) != ACPI_TYPE_PACKAGE) { | 209 | if (ACPI_GET_OBJECT_TYPE(*top_object_list) != ACPI_TYPE_PACKAGE) { |
210 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 210 | ACPI_REPORT_ERROR(("(PRT[%X]) Need sub-package, found %s\n", index, acpi_ut_get_object_type_name(*top_object_list))); |
211 | "(PRT[%X]) Need sub-package, found %s\n", | ||
212 | index, | ||
213 | acpi_ut_get_object_type_name | ||
214 | (*top_object_list))); | ||
215 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); | 211 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); |
216 | } | 212 | } |
217 | 213 | ||
218 | /* Each sub-package must be of length 4 */ | 214 | /* Each sub-package must be of length 4 */ |
219 | 215 | ||
220 | if ((*top_object_list)->package.count != 4) { | 216 | if ((*top_object_list)->package.count != 4) { |
221 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 217 | ACPI_REPORT_ERROR(("(PRT[%X]) Need package of length 4, found length %d\n", index, (*top_object_list)->package.count)); |
222 | "(PRT[%X]) Need package of length 4, found length %d\n", | ||
223 | index, | ||
224 | (*top_object_list)->package.count)); | ||
225 | return_ACPI_STATUS(AE_AML_PACKAGE_LIMIT); | 218 | return_ACPI_STATUS(AE_AML_PACKAGE_LIMIT); |
226 | } | 219 | } |
227 | 220 | ||
@@ -238,11 +231,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
238 | if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { | 231 | if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { |
239 | user_prt->address = obj_desc->integer.value; | 232 | user_prt->address = obj_desc->integer.value; |
240 | } else { | 233 | } else { |
241 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 234 | ACPI_REPORT_ERROR(("(PRT[%X].Address) Need Integer, found %s\n", index, acpi_ut_get_object_type_name(obj_desc))); |
242 | "(PRT[%X].Address) Need Integer, found %s\n", | ||
243 | index, | ||
244 | acpi_ut_get_object_type_name | ||
245 | (obj_desc))); | ||
246 | return_ACPI_STATUS(AE_BAD_DATA); | 235 | return_ACPI_STATUS(AE_BAD_DATA); |
247 | } | 236 | } |
248 | 237 | ||
@@ -252,11 +241,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
252 | if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { | 241 | if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { |
253 | user_prt->pin = (u32) obj_desc->integer.value; | 242 | user_prt->pin = (u32) obj_desc->integer.value; |
254 | } else { | 243 | } else { |
255 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 244 | ACPI_REPORT_ERROR(("(PRT[%X].Pin) Need Integer, found %s\n", index, acpi_ut_get_object_type_name(obj_desc))); |
256 | "(PRT[%X].Pin) Need Integer, found %s\n", | ||
257 | index, | ||
258 | acpi_ut_get_object_type_name | ||
259 | (obj_desc))); | ||
260 | return_ACPI_STATUS(AE_BAD_DATA); | 245 | return_ACPI_STATUS(AE_BAD_DATA); |
261 | } | 246 | } |
262 | 247 | ||
@@ -267,10 +252,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
267 | case ACPI_TYPE_LOCAL_REFERENCE: | 252 | case ACPI_TYPE_LOCAL_REFERENCE: |
268 | 253 | ||
269 | if (obj_desc->reference.opcode != AML_INT_NAMEPATH_OP) { | 254 | if (obj_desc->reference.opcode != AML_INT_NAMEPATH_OP) { |
270 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 255 | ACPI_REPORT_ERROR(("(PRT[%X].Source) Need name, found reference op %X\n", index, obj_desc->reference.opcode)); |
271 | "(PRT[%X].Source) Need name, found reference op %X\n", | ||
272 | index, | ||
273 | obj_desc->reference.opcode)); | ||
274 | return_ACPI_STATUS(AE_BAD_DATA); | 256 | return_ACPI_STATUS(AE_BAD_DATA); |
275 | } | 257 | } |
276 | 258 | ||
@@ -316,11 +298,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
316 | 298 | ||
317 | default: | 299 | default: |
318 | 300 | ||
319 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 301 | ACPI_REPORT_ERROR(("(PRT[%X].Source) Need Ref/String/Integer, found %s\n", index, acpi_ut_get_object_type_name(obj_desc))); |
320 | "(PRT[%X].Source) Need Ref/String/Integer, found %s\n", | ||
321 | index, | ||
322 | acpi_ut_get_object_type_name | ||
323 | (obj_desc))); | ||
324 | return_ACPI_STATUS(AE_BAD_DATA); | 302 | return_ACPI_STATUS(AE_BAD_DATA); |
325 | } | 303 | } |
326 | 304 | ||
@@ -335,11 +313,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
335 | if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { | 313 | if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { |
336 | user_prt->source_index = (u32) obj_desc->integer.value; | 314 | user_prt->source_index = (u32) obj_desc->integer.value; |
337 | } else { | 315 | } else { |
338 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 316 | ACPI_REPORT_ERROR(("(PRT[%X].source_index) Need Integer, found %s\n", index, acpi_ut_get_object_type_name(obj_desc))); |
339 | "(PRT[%X].source_index) Need Integer, found %s\n", | ||
340 | index, | ||
341 | acpi_ut_get_object_type_name | ||
342 | (obj_desc))); | ||
343 | return_ACPI_STATUS(AE_BAD_DATA); | 317 | return_ACPI_STATUS(AE_BAD_DATA); |
344 | } | 318 | } |
345 | 319 | ||
diff --git a/drivers/acpi/resources/rsdump.c b/drivers/acpi/resources/rsdump.c index c24e3eb658c3..98356e2482c5 100644 --- a/drivers/acpi/resources/rsdump.c +++ b/drivers/acpi/resources/rsdump.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/resources/rsinfo.c b/drivers/acpi/resources/rsinfo.c index 623b06689336..d9ae64b77bd9 100644 --- a/drivers/acpi/resources/rsinfo.c +++ b/drivers/acpi/resources/rsinfo.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/resources/rsio.c b/drivers/acpi/resources/rsio.c index ef24ba110c6e..ea567167c4f2 100644 --- a/drivers/acpi/resources/rsio.c +++ b/drivers/acpi/resources/rsio.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/resources/rsirq.c b/drivers/acpi/resources/rsirq.c index 79e71257b69a..1fa63bc2e36f 100644 --- a/drivers/acpi/resources/rsirq.c +++ b/drivers/acpi/resources/rsirq.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/resources/rslist.c b/drivers/acpi/resources/rslist.c index 573c06705641..e4778a51c17e 100644 --- a/drivers/acpi/resources/rslist.c +++ b/drivers/acpi/resources/rslist.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -156,9 +156,7 @@ acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, | |||
156 | /* Validate the (internal) Resource Type */ | 156 | /* Validate the (internal) Resource Type */ |
157 | 157 | ||
158 | if (resource->type > ACPI_RESOURCE_TYPE_MAX) { | 158 | if (resource->type > ACPI_RESOURCE_TYPE_MAX) { |
159 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 159 | ACPI_REPORT_ERROR(("Invalid descriptor type (%X) in resource list\n", resource->type)); |
160 | "Invalid descriptor type (%X) in resource list\n", | ||
161 | resource->type)); | ||
162 | return_ACPI_STATUS(AE_BAD_DATA); | 160 | return_ACPI_STATUS(AE_BAD_DATA); |
163 | } | 161 | } |
164 | 162 | ||
diff --git a/drivers/acpi/resources/rsmemory.c b/drivers/acpi/resources/rsmemory.c index 418a3fb64077..a5131936d690 100644 --- a/drivers/acpi/resources/rsmemory.c +++ b/drivers/acpi/resources/rsmemory.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/resources/rsmisc.c b/drivers/acpi/resources/rsmisc.c index 4a758bd4a5c8..83bfe0dd3eba 100644 --- a/drivers/acpi/resources/rsmisc.c +++ b/drivers/acpi/resources/rsmisc.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -523,9 +523,7 @@ if (((aml->irq.flags & 0x09) == 0x00) || ((aml->irq.flags & 0x09) == 0x09)) { | |||
523 | * polarity/trigger interrupts are allowed (ACPI spec, section | 523 | * polarity/trigger interrupts are allowed (ACPI spec, section |
524 | * "IRQ Format"), so 0x00 and 0x09 are illegal. | 524 | * "IRQ Format"), so 0x00 and 0x09 are illegal. |
525 | */ | 525 | */ |
526 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 526 | ACPI_REPORT_ERROR(("Invalid interrupt polarity/trigger in resource list, %X\n", aml->irq.flags)); |
527 | "Invalid interrupt polarity/trigger in resource list, %X\n", | ||
528 | aml->irq.flags)); | ||
529 | return_ACPI_STATUS(AE_BAD_DATA); | 527 | return_ACPI_STATUS(AE_BAD_DATA); |
530 | } | 528 | } |
531 | 529 | ||
@@ -537,8 +535,7 @@ if (temp8 < 1) { | |||
537 | } | 535 | } |
538 | 536 | ||
539 | if (resource->data.dma.transfer == 0x03) { | 537 | if (resource->data.dma.transfer == 0x03) { |
540 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 538 | ACPI_REPORT_ERROR(("Invalid DMA.Transfer preference (3)\n")); |
541 | "Invalid DMA.Transfer preference (3)\n")); | ||
542 | return_ACPI_STATUS(AE_BAD_DATA); | 539 | return_ACPI_STATUS(AE_BAD_DATA); |
543 | } | 540 | } |
544 | #endif | 541 | #endif |
diff --git a/drivers/acpi/resources/rsutils.c b/drivers/acpi/resources/rsutils.c index 2236a0c90daa..25b5aedd6612 100644 --- a/drivers/acpi/resources/rsutils.c +++ b/drivers/acpi/resources/rsutils.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/resources/rsxface.c b/drivers/acpi/resources/rsxface.c index 50a956b705b0..88b67077aeeb 100644 --- a/drivers/acpi/resources/rsxface.c +++ b/drivers/acpi/resources/rsxface.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |