[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190118140308.9599-3-johan@kernel.org>
Date: Fri, 18 Jan 2019 15:03:05 +0100
From: Johan Hovold <johan@...nel.org>
To: Palmer Dabbelt <palmer@...ive.com>
Cc: Albert Ou <aou@...s.berkeley.edu>, Andreas Schwab <schwab@...e.de>,
Atish Patra <atish.patra@....com>,
Anup Patel <anup@...infault.org>,
linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
Johan Hovold <johan@...nel.org>
Subject: [PATCH 2/5] 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@...nel.org>
---
arch/riscv/kernel/setup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
index 6e079e94b638..5c15bb0560ee 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:
--
2.20.1
Powered by blists - more mailing lists