diff options
author | Bob Moore <robert.moore@intel.com> | 2015-04-12 23:50:56 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-04-14 08:51:55 -0400 |
commit | d5a6f6b48f5c2685ed48efc450330b1176845bb9 (patch) | |
tree | 2646c13ff5626c2e1adbee655b9843c137e38987 | |
parent | 539451711bd4c8f3dc9c236c85fa37701cc1bb66 (diff) |
ACPICA: Add "//" before ascii output of buffers.
ACPICA commit 657dc227672709895df3192fa5ea59a649b9a76f
Updates the dump buffer utility to comment out the ASCII part
of buffer dump. Prevents some tools from getting confused.
Link: https://github.com/acpica/acpica/commit/657dc227
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>
-rw-r--r-- | drivers/acpi/acpica/utbuffer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/utbuffer.c b/drivers/acpi/acpica/utbuffer.c index 242bd071f007..a8c39643e618 100644 --- a/drivers/acpi/acpica/utbuffer.c +++ b/drivers/acpi/acpica/utbuffer.c | |||
@@ -150,6 +150,14 @@ void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) | |||
150 | return; | 150 | return; |
151 | } | 151 | } |
152 | 152 | ||
153 | /* | ||
154 | * Add comment characters so rest of line is ignored when | ||
155 | * compiled | ||
156 | */ | ||
157 | if (j == 0) { | ||
158 | acpi_os_printf("// "); | ||
159 | } | ||
160 | |||
153 | buf_char = buffer[(acpi_size) i + j]; | 161 | buf_char = buffer[(acpi_size) i + j]; |
154 | if (ACPI_IS_PRINT(buf_char)) { | 162 | if (ACPI_IS_PRINT(buf_char)) { |
155 | acpi_os_printf("%c", buf_char); | 163 | acpi_os_printf("%c", buf_char); |