Skip to content

Commit

Permalink
mm/early_ioremap.c: use __func__ instead of function name
Browse files Browse the repository at this point in the history
It is better to use __func__ instead of function name.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Stephen Zhang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Stephen Zhang authored and torvalds committed Feb 26, 2021
1 parent c1ca59a commit 8700539
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mm/early_ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,17 @@ void __init early_iounmap(void __iomem *addr, unsigned long size)
}
}

if (WARN(slot < 0, "early_iounmap(%p, %08lx) not found slot\n",
addr, size))
if (WARN(slot < 0, "%s(%p, %08lx) not found slot\n",
__func__, addr, size))
return;

if (WARN(prev_size[slot] != size,
"early_iounmap(%p, %08lx) [%d] size not consistent %08lx\n",
addr, size, slot, prev_size[slot]))
"%s(%p, %08lx) [%d] size not consistent %08lx\n",
__func__, addr, size, slot, prev_size[slot]))
return;

WARN(early_ioremap_debug, "early_iounmap(%p, %08lx) [%d]\n",
addr, size, slot);
WARN(early_ioremap_debug, "%s(%p, %08lx) [%d]\n",
__func__, addr, size, slot);

virt_addr = (unsigned long)addr;
if (WARN_ON(virt_addr < fix_to_virt(FIX_BTMAP_BEGIN)))
Expand Down

0 comments on commit 8700539

Please sign in to comment.