Skip to content

Commit

Permalink
riscv: use pr_info and friends
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hovold authored and Palmer Dabbelt committed Feb 11, 2019
1 parent 7265d10 commit e1b1381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/riscv/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ 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;
}

size = initrd_end - initrd_start;
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:
Expand Down

0 comments on commit e1b1381

Please sign in to comment.