Skip to content

Commit

Permalink
ACPICA: Deploy new 32/64 printf support for table override mechanism.
Browse files Browse the repository at this point in the history
Similar to the earlier tbprint.c change.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Feb 10, 2014
1 parent c03775c commit 2e19f8d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions drivers/acpi/acpica/tbinstal.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,11 @@ struct acpi_table_header *acpi_tb_table_override(struct acpi_table_header
new_table = acpi_os_map_memory(new_address, new_table_length);
if (!new_table) {
ACPI_EXCEPTION((AE_INFO, AE_NO_MEMORY,
"%4.4s %p Attempted physical table override failed",
"%4.4s " ACPI_PRINTF_UINT
" Attempted physical table override failed",
table_header->signature,
ACPI_CAST_PTR(void,
table_desc->address)));
ACPI_FORMAT_TO_UINT(table_desc->
address)));
return (NULL);
}

Expand All @@ -308,11 +309,11 @@ struct acpi_table_header *acpi_tb_table_override(struct acpi_table_header

finish_override:

ACPI_INFO((AE_INFO,
"%4.4s %p %s table override, new table: %p",
ACPI_INFO((AE_INFO, "%4.4s " ACPI_PRINTF_UINT
" %s table override, new table: " ACPI_PRINTF_UINT,
table_header->signature,
ACPI_CAST_PTR(void, table_desc->address),
override_type, new_table));
ACPI_FORMAT_TO_UINT(table_desc->address),
override_type, ACPI_FORMAT_TO_UINT(new_table)));

/* We can now unmap/delete the original table (if fully mapped) */

Expand Down

0 comments on commit 2e19f8d

Please sign in to comment.