From: YangHui <yanghui.def@xxxxxxxxx> it's much better to use __func__ Signed-off-by: YangHui <yanghui.def@xxxxxxxxx> --- mm/slab_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/slab_common.c b/mm/slab_common.c index 9e72ba2..274b374 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -960,8 +960,8 @@ void kmem_cache_destroy(struct kmem_cache *s) err = shutdown_cache(s); if (err) { - pr_err("kmem_cache_destroy %s: Slab cache still has objects\n", - s->name); + pr_err("%s: %s: Slab cache still has objects\n", + __func__, s->name); dump_stack(); } out_unlock: -- 2.7.4