diff options
author | Lin Ming <ming.m.lin@intel.com> | 2008-09-28 02:51:56 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-22 23:14:41 -0400 |
commit | 55ac9a018f83e4f42f3c6ce98a8dbda73b985935 (patch) | |
tree | bb8b1121c247fe6018164ee726aa0395f0dbb073 /drivers/acpi/processor_perflib.c | |
parent | 8bd108d14604d9c95000751e6c6ecbd11ea6ed40 (diff) |
ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk
ACPI_DB_ERROR and ACPI_DB_WARN were removed from ACPICA core.
So replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk(KERN_ERR PREFIX ...)
and ACPI_DEBUG_PRINT((ACPI_DB_WARN, ...) with printk(KERN_WARNING PREFIX ...)
We do not use ACPI_ERROR/ACPI_WARNING since they're not exported, see
-------------------------------------------------------------
commit 6468463abd7051fcc29f3ee7c931f9bbbb26f5a4
Author: Len Brown <len.brown@intel.com>
Date: Mon Jun 26 23:41:38 2006 -0400
ACPI: un-export ACPI_ERROR() -- use printk(KERN_ERR...)
Signed-off-by: Len Brown <len.brown@intel.com>
-------------------------------------------------------------
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/processor_perflib.c')
-rw-r--r-- | drivers/acpi/processor_perflib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index 80c251ec6d2a..e5c457b45f2b 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c | |||
@@ -524,13 +524,13 @@ static int acpi_processor_get_psd(struct acpi_processor *pr) | |||
524 | 524 | ||
525 | psd = buffer.pointer; | 525 | psd = buffer.pointer; |
526 | if (!psd || (psd->type != ACPI_TYPE_PACKAGE)) { | 526 | if (!psd || (psd->type != ACPI_TYPE_PACKAGE)) { |
527 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n")); | 527 | printk(KERN_ERR PREFIX "Invalid _PSD data\n"); |
528 | result = -EFAULT; | 528 | result = -EFAULT; |
529 | goto end; | 529 | goto end; |
530 | } | 530 | } |
531 | 531 | ||
532 | if (psd->package.count != 1) { | 532 | if (psd->package.count != 1) { |
533 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n")); | 533 | printk(KERN_ERR PREFIX "Invalid _PSD data\n"); |
534 | result = -EFAULT; | 534 | result = -EFAULT; |
535 | goto end; | 535 | goto end; |
536 | } | 536 | } |
@@ -543,19 +543,19 @@ static int acpi_processor_get_psd(struct acpi_processor *pr) | |||
543 | status = acpi_extract_package(&(psd->package.elements[0]), | 543 | status = acpi_extract_package(&(psd->package.elements[0]), |
544 | &format, &state); | 544 | &format, &state); |
545 | if (ACPI_FAILURE(status)) { | 545 | if (ACPI_FAILURE(status)) { |
546 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n")); | 546 | printk(KERN_ERR PREFIX "Invalid _PSD data\n"); |
547 | result = -EFAULT; | 547 | result = -EFAULT; |
548 | goto end; | 548 | goto end; |
549 | } | 549 | } |
550 | 550 | ||
551 | if (pdomain->num_entries != ACPI_PSD_REV0_ENTRIES) { | 551 | if (pdomain->num_entries != ACPI_PSD_REV0_ENTRIES) { |
552 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Unknown _PSD:num_entries\n")); | 552 | printk(KERN_ERR PREFIX "Unknown _PSD:num_entries\n"); |
553 | result = -EFAULT; | 553 | result = -EFAULT; |
554 | goto end; | 554 | goto end; |
555 | } | 555 | } |
556 | 556 | ||
557 | if (pdomain->revision != ACPI_PSD_REV0_REVISION) { | 557 | if (pdomain->revision != ACPI_PSD_REV0_REVISION) { |
558 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Unknown _PSD:revision\n")); | 558 | printk(KERN_ERR PREFIX "Unknown _PSD:revision\n"); |
559 | result = -EFAULT; | 559 | result = -EFAULT; |
560 | goto end; | 560 | goto end; |
561 | } | 561 | } |