powerpc: Use pr_warn instead of pr_warning
At some point, pr_warning will be removed so all logging messages use a consistent <prefix>_warn style. Update arch/powerpc/ Miscellanea: o Coalesce formats o Realign arguments o Use %s, __func__ instead of embedded function names o Remove unnecessary line continuations Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Geoff Levand <geoff@infradead.org> [mpe: Rebase due to some %pOF changes.] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
ae64f9bd1d
commit
f2c2cbcc35
@@ -241,18 +241,16 @@ static int __init icp_native_map_one_cpu(int hw_id, unsigned long addr,
|
||||
cpu, hw_id);
|
||||
|
||||
if (!request_mem_region(addr, size, rname)) {
|
||||
pr_warning("icp_native: Could not reserve ICP MMIO"
|
||||
" for CPU %d, interrupt server #0x%x\n",
|
||||
cpu, hw_id);
|
||||
pr_warn("icp_native: Could not reserve ICP MMIO for CPU %d, interrupt server #0x%x\n",
|
||||
cpu, hw_id);
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
icp_native_regs[cpu] = ioremap(addr, size);
|
||||
kvmppc_set_xics_phys(cpu, addr);
|
||||
if (!icp_native_regs[cpu]) {
|
||||
pr_warning("icp_native: Failed ioremap for CPU %d, "
|
||||
"interrupt server #0x%x, addr %#lx\n",
|
||||
cpu, hw_id, addr);
|
||||
pr_warn("icp_native: Failed ioremap for CPU %d, interrupt server #0x%x, addr %#lx\n",
|
||||
cpu, hw_id, addr);
|
||||
release_mem_region(addr, size);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user