]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
ACPICA: Add "//" before ascii output of buffers.
authorBob Moore <robert.moore@intel.com>
Mon, 13 Apr 2015 03:50:56 +0000 (11:50 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 14 Apr 2015 12:51:55 +0000 (14:51 +0200)
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>
drivers/acpi/acpica/utbuffer.c

index 242bd071f007c27a2371590352b1e2f6747bcdec..a8c39643e6181fbebff0aa047b1391551720082a 100644 (file)
@@ -150,6 +150,14 @@ void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset)
                                return;
                        }
 
+                       /*
+                        * Add comment characters so rest of line is ignored when
+                        * compiled
+                        */
+                       if (j == 0) {
+                               acpi_os_printf("// ");
+                       }
+
                        buf_char = buffer[(acpi_size) i + j];
                        if (ACPI_IS_PRINT(buf_char)) {
                                acpi_os_printf("%c", buf_char);