Skip to content

Commit 8700539

Browse files
Stephen Zhangtorvalds
authored andcommitted
mm/early_ioremap.c: use __func__ instead of function name
It is better to use __func__ instead of function name. Link: https://lkml.kernel.org/r/1611385587-4209-1-git-send-email-stephenzhangzsd@gmail.com Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c1ca59a commit 8700539

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mm/early_ioremap.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,17 @@ void __init early_iounmap(void __iomem *addr, unsigned long size)
181181
}
182182
}
183183

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

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

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

196196
virt_addr = (unsigned long)addr;
197197
if (WARN_ON(virt_addr < fix_to_virt(FIX_BTMAP_BEGIN)))

0 commit comments

Comments
 (0)