summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2019-01-18 17:03:05 +0300
committerPalmer Dabbelt <palmer@sifive.com>2019-02-12 02:35:11 +0300
commite1b1381b31793dde71eb87a78071c22c3f02f75c (patch)
tree2c7934dc6045c3b6e29c97d10fd98039eafa5c8d /arch/riscv
parent7265d103902c0bc2b76fe04e87e0c486016391c3 (diff)
downloadlinux-e1b1381b31793dde71eb87a78071c22c3f02f75c.tar.xz
riscv: use pr_info and friends
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>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/kernel/setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
index 77564310235f..fb09e0136026 100644
--- a/arch/riscv/kernel/setup.c
+++ b/arch/riscv/kernel/setup.c
@@ -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: