OSDN Git Service

arm: fix show_data fallout from KERN_CONT changes
authorJi Zhang <ji.zhang@mediatek.com>
Fri, 26 Jan 2018 07:21:12 +0000 (15:21 +0800)
committerMiles Chen <miles.chen@mediatek.com>
Mon, 2 Apr 2018 07:21:54 +0000 (07:21 +0000)
The log format printed by show_data is illegible due to printk change
"commit 4bcc595ccd80decb ("printk: reinstate KERN_CONT for printing
continuation lines")".

[47160.418043] PC: 0xc05fd830:
[47160.418052] d830
[47160.418058]  51a00331
[47160.418064]  41800c11
[47160.418073]  e1a01231
[47160.418079]  e12fff1e
[47160.418088]  e2522001
[47160.418096]  4a000003
[47160.418104]  e4d03001
[47160.418120]  e1330001
[47160.418128] d850
[47160.418136]  1afffffa
[47160.418144]  e2400001
[47160.418149]  13a00000
[47160.418157]  e12fff1e
[47160.418164]  e92d4011
[47160.418171]  e2522004
[47160.418179]  ba00002b
[47160.418188]  e210c003

To fix this, use pr_cont() instead of the printk() to print
continuing lines.

Signed-off-by: Ji Zhang <ji.zhang@mediatek.com>
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
arch/arm/kernel/process.c

index c6324b5..38ad8b9 100644 (file)
@@ -129,13 +129,13 @@ static void show_data(unsigned long addr, int nbytes, const char *name)
                for (j = 0; j < 8; j++) {
                        u32     data;
                        if (probe_kernel_address(p, data)) {
-                               printk(" ********");
+                               pr_cont(" ********");
                        } else {
-                               printk(" %08x", data);
+                               pr_cont(" %08x", data);
                        }
                        ++p;
                }
-               printk("\n");
+               pr_cont("\n");
        }
 }