]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/disassembler: correct disassembly lines alignment
authorVasily Gorbik <gor@linux.vnet.ibm.com>
Thu, 23 Nov 2017 09:50:23 +0000 (10:50 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 24 Nov 2017 10:02:41 +0000 (11:02 +0100)
176.718956 Krnl Code: 00000000004d38b0a54c0018        llihh   %r4,24
176.718956     00000000004d38b4b9080014        agr     %r1,%r4
           ^
Using a tab to align disassembly lines which follow the first line with
"Krnl Code: " doesn't always work, e.g. if there is a prefix (timestamp
or syslog prefix) which is not 8 chars aligned. Go back to alignment
with spaces.

Fixes: 7d04ff628e26 ("s390/disassembler: increase show_code buffer size")
Signed-off-by: Vasily Gorbik <gor@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/dis.c

index 465d52b5e47089e905cdd0c19e8d05e3487f1433..0a0e14335a04536cbf4382e71f5baad0d819f50a 100644 (file)
@@ -548,7 +548,7 @@ void show_code(struct pt_regs *regs)
                start += opsize;
                pr_cont("%s", buffer);
                ptr = buffer;
-               ptr += sprintf(ptr, "\n\t  ");
+               ptr += sprintf(ptr, "\n          ");
                hops++;
        }
        pr_cont("\n");