Commit e1b1381b authored by Johan Hovold's avatar Johan Hovold Committed by Palmer Dabbelt

riscv: use pr_info and friends

Use the pr_info and pr_err macros instead of printk with explicit log
levels.
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Reviewed-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 7265d103
...@@ -76,11 +76,11 @@ static void __init setup_initrd(void) ...@@ -76,11 +76,11 @@ static void __init setup_initrd(void)
unsigned long size; unsigned long size;
if (initrd_start >= initrd_end) { if (initrd_start >= initrd_end) {
printk(KERN_INFO "initrd not found or empty"); pr_info("initrd not found or empty");
goto disable; goto disable;
} }
if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { 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; goto disable;
} }
...@@ -88,7 +88,7 @@ static void __init setup_initrd(void) ...@@ -88,7 +88,7 @@ static void __init setup_initrd(void)
memblock_reserve(__pa(initrd_start), size); memblock_reserve(__pa(initrd_start), size);
initrd_below_start_ok = 1; 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); (void *)(initrd_start), size);
return; return;
disable: disable:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment