aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/tables
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/tables')
-rw-r--r--drivers/acpi/tables/tbutils.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/acpi/tables/tbutils.c b/drivers/acpi/tables/tbutils.c
index 5f1440376514..209a401801e3 100644
--- a/drivers/acpi/tables/tbutils.c
+++ b/drivers/acpi/tables/tbutils.c
@@ -160,12 +160,8 @@ acpi_tb_validate_table_header(struct acpi_table_header *table_header)
160 160
161 ACPI_MOVE_32_TO_32(&signature, table_header->signature); 161 ACPI_MOVE_32_TO_32(&signature, table_header->signature);
162 if (!acpi_ut_valid_acpi_name(signature)) { 162 if (!acpi_ut_valid_acpi_name(signature)) {
163 ACPI_ERROR((AE_INFO, 163 ACPI_ERROR((AE_INFO, "Invalid table signature 0x%8.8X",
164 "Table signature at %p [%p] has invalid characters", 164 signature));
165 table_header, &signature));
166
167 ACPI_WARNING((AE_INFO, "Invalid table signature found: [%4.4s]",
168 ACPI_CAST_PTR(char, &signature)));
169 165
170 ACPI_DUMP_BUFFER(table_header, 166 ACPI_DUMP_BUFFER(table_header,
171 sizeof(struct acpi_table_header)); 167 sizeof(struct acpi_table_header));
@@ -176,12 +172,9 @@ acpi_tb_validate_table_header(struct acpi_table_header *table_header)
176 172
177 if (table_header->length < sizeof(struct acpi_table_header)) { 173 if (table_header->length < sizeof(struct acpi_table_header)) {
178 ACPI_ERROR((AE_INFO, 174 ACPI_ERROR((AE_INFO,
179 "Invalid length in table header %p name %4.4s", 175 "Invalid length 0x%X in table with signature %4.4s",
180 table_header, (char *)&signature)); 176 (u32) table_header->length,
181 177 ACPI_CAST_PTR(char, &signature)));
182 ACPI_WARNING((AE_INFO,
183 "Invalid table header length (0x%X) found",
184 (u32) table_header->length));
185 178
186 ACPI_DUMP_BUFFER(table_header, 179 ACPI_DUMP_BUFFER(table_header,
187 sizeof(struct acpi_table_header)); 180 sizeof(struct acpi_table_header));