riscv: use pr_info and friends
authorJohan Hovold <johan@kernel.org>
Fri, 18 Jan 2019 14:03:05 +0000 (15:03 +0100)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 11 Feb 2019 23:35:11 +0000 (15:35 -0800)
Use the pr_info and pr_err macros instead of printk with explicit log
levels.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/setup.c

index 77564310235f4d0a545ddde1478e5adfb7b2d08a..fb09e0136026b7106e4ed117a18691ddf0d57cbb 100644 (file)
@@ -76,11 +76,11 @@ static void __init setup_initrd(void)
        unsigned long size;
 
        if (initrd_start >= initrd_end) {
-               printk(KERN_INFO "initrd not found or empty");
+               pr_info("initrd not found or empty");
                goto disable;
        }
        if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) {
-               printk(KERN_ERR "initrd extends beyond end of memory");
+               pr_err("initrd extends beyond end of memory");
                goto disable;
        }
 
@@ -88,7 +88,7 @@ static void __init setup_initrd(void)
        memblock_reserve(__pa(initrd_start), size);
        initrd_below_start_ok = 1;
 
-       printk(KERN_INFO "Initial ramdisk at: 0x%p (%lu bytes)\n",
+       pr_info("Initial ramdisk at: 0x%p (%lu bytes)\n",
                (void *)(initrd_start), size);
        return;
 disable: