diff options
Diffstat (limited to 'drivers/acpi/tables/tbconvrt.c')
-rw-r--r-- | drivers/acpi/tables/tbconvrt.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/drivers/acpi/tables/tbconvrt.c b/drivers/acpi/tables/tbconvrt.c index a03939399fa9..03b37d2223bc 100644 --- a/drivers/acpi/tables/tbconvrt.c +++ b/drivers/acpi/tables/tbconvrt.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 |
@@ -501,8 +501,8 @@ acpi_status acpi_tb_convert_table_fadt(void) | |||
501 | * at least as long as the version 1.0 FADT | 501 | * at least as long as the version 1.0 FADT |
502 | */ | 502 | */ |
503 | if (acpi_gbl_FADT->length < sizeof(struct fadt_descriptor_rev1)) { | 503 | if (acpi_gbl_FADT->length < sizeof(struct fadt_descriptor_rev1)) { |
504 | ACPI_REPORT_ERROR(("FADT is invalid, too short: 0x%X\n", | 504 | ACPI_ERROR((AE_INFO, "FADT is invalid, too short: 0x%X", |
505 | acpi_gbl_FADT->length)); | 505 | acpi_gbl_FADT->length)); |
506 | return_ACPI_STATUS(AE_INVALID_TABLE_LENGTH); | 506 | return_ACPI_STATUS(AE_INVALID_TABLE_LENGTH); |
507 | } | 507 | } |
508 | 508 | ||
@@ -517,7 +517,10 @@ acpi_status acpi_tb_convert_table_fadt(void) | |||
517 | if (acpi_gbl_FADT->length < sizeof(struct fadt_descriptor_rev2)) { | 517 | if (acpi_gbl_FADT->length < sizeof(struct fadt_descriptor_rev2)) { |
518 | /* Length is too short to be a V2.0 table */ | 518 | /* Length is too short to be a V2.0 table */ |
519 | 519 | ||
520 | ACPI_REPORT_WARNING(("Inconsistent FADT length (0x%X) and revision (0x%X), using FADT V1.0 portion of table\n", acpi_gbl_FADT->length, acpi_gbl_FADT->revision)); | 520 | ACPI_WARNING((AE_INFO, |
521 | "Inconsistent FADT length (0x%X) and revision (0x%X), using FADT V1.0 portion of table", | ||
522 | acpi_gbl_FADT->length, | ||
523 | acpi_gbl_FADT->revision)); | ||
521 | 524 | ||
522 | acpi_tb_convert_fadt1(local_fadt, | 525 | acpi_tb_convert_fadt1(local_fadt, |
523 | (void *)acpi_gbl_FADT); | 526 | (void *)acpi_gbl_FADT); |
@@ -554,7 +557,9 @@ acpi_status acpi_tb_convert_table_fadt(void) | |||
554 | ACPI_DEBUG_PRINT((ACPI_DB_TABLES, | 557 | ACPI_DEBUG_PRINT((ACPI_DB_TABLES, |
555 | "Hex dump of common internal FADT, size %d (%X)\n", | 558 | "Hex dump of common internal FADT, size %d (%X)\n", |
556 | acpi_gbl_FADT->length, acpi_gbl_FADT->length)); | 559 | acpi_gbl_FADT->length, acpi_gbl_FADT->length)); |
557 | ACPI_DUMP_BUFFER((u8 *) (acpi_gbl_FADT), acpi_gbl_FADT->length); | 560 | |
561 | ACPI_DUMP_BUFFER(ACPI_CAST_PTR(u8, acpi_gbl_FADT), | ||
562 | acpi_gbl_FADT->length); | ||
558 | 563 | ||
559 | return_ACPI_STATUS(AE_OK); | 564 | return_ACPI_STATUS(AE_OK); |
560 | } | 565 | } |
@@ -580,13 +585,15 @@ acpi_status acpi_tb_build_common_facs(struct acpi_table_desc *table_info) | |||
580 | /* Absolute minimum length is 24, but the ACPI spec says 64 */ | 585 | /* Absolute minimum length is 24, but the ACPI spec says 64 */ |
581 | 586 | ||
582 | if (acpi_gbl_FACS->length < 24) { | 587 | if (acpi_gbl_FACS->length < 24) { |
583 | ACPI_REPORT_ERROR(("Invalid FACS table length: 0x%X\n", | 588 | ACPI_ERROR((AE_INFO, "Invalid FACS table length: 0x%X", |
584 | acpi_gbl_FACS->length)); | 589 | acpi_gbl_FACS->length)); |
585 | return_ACPI_STATUS(AE_INVALID_TABLE_LENGTH); | 590 | return_ACPI_STATUS(AE_INVALID_TABLE_LENGTH); |
586 | } | 591 | } |
587 | 592 | ||
588 | if (acpi_gbl_FACS->length < 64) { | 593 | if (acpi_gbl_FACS->length < 64) { |
589 | ACPI_REPORT_WARNING(("FACS is shorter than the ACPI specification allows: 0x%X, using anyway\n", acpi_gbl_FACS->length)); | 594 | ACPI_WARNING((AE_INFO, |
595 | "FACS is shorter than the ACPI specification allows: 0x%X, using anyway", | ||
596 | acpi_gbl_FACS->length)); | ||
590 | } | 597 | } |
591 | 598 | ||
592 | /* Copy fields to the new FACS */ | 599 | /* Copy fields to the new FACS */ |