From: Bob Moore Date: Tue, 8 May 2018 21:06:17 +0000 (-0700) Subject: ACPICA: acpidump/acpixtract: Support for tables larger than 1MB X-Git-Tag: v4.18-rc1~148^2~2^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=57b758ca4eaf83054e6966e4d9c8851588dfb9f0;p=users%2Fwilly%2Fxarray.git ACPICA: acpidump/acpixtract: Support for tables larger than 1MB acpidump: Expand the table offset field to 32 bits. acpixtract: Add support to handle the expanded field. Backwards compatibility is maintained. Signed-off-by: Bob Moore Signed-off-by: Erik Schmauss Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpica/utbuffer.c b/drivers/acpi/acpica/utbuffer.c index 148aeb84e561..fffa6f5ae59e 100644 --- a/drivers/acpi/acpica/utbuffer.c +++ b/drivers/acpi/acpica/utbuffer.c @@ -53,7 +53,7 @@ void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) /* Print current offset */ - acpi_os_printf("%6.4X: ", (base_offset + i)); + acpi_os_printf("%8.4X: ", (base_offset + i)); /* Print 16 hex chars */ @@ -219,7 +219,7 @@ acpi_ut_dump_buffer_to_file(ACPI_FILE file, /* Print current offset */ - fprintf(file, "%6.4X: ", (base_offset + i)); + fprintf(file, "%8.4X: ", (base_offset + i)); /* Print 16 hex chars */