OSDN Git Service

sh: sh2007: Modernize printing of kernel messages
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 17 Jun 2020 14:36:37 +0000 (16:36 +0200)
committerRich Felker <dalias@libc.org>
Sat, 15 Aug 2020 02:05:10 +0000 (22:05 -0400)
  - Convert from printk() to pr_*(),
  - Add missing continuation.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/boards/board-sh2007.c

index ef9c87d..6ea85e4 100644 (file)
@@ -126,14 +126,14 @@ static void __init sh2007_init_irq(void)
  */
 static void __init sh2007_setup(char **cmdline_p)
 {
-       printk(KERN_INFO "SH-2007 Setup...");
+       pr_info("SH-2007 Setup...");
 
        /* setup wait control registers for area 5 */
        __raw_writel(CS5BCR_D, CS5BCR);
        __raw_writel(CS5WCR_D, CS5WCR);
        __raw_writel(CS5PCR_D, CS5PCR);
 
-       printk(KERN_INFO " done.\n");
+       pr_cont(" done.\n");
 }
 
 /*