linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: hui yang <yanghui.def@gmail.com>
To: cl@linux.com
Cc: penberg@kernel.org, rientjes@google.com, linux-mm@kvack.org,
	iamjoonsoo.kim@lge.com, YangHui <yanghui.def@gmail.com>
Subject: [PATCH] mm: use __func__ replace function name
Date: Mon, 15 Jun 2020 19:28:54 +0800	[thread overview]
Message-ID: <1592220534-4656-1-git-send-email-yanghui.def@gmail.com> (raw)

From: YangHui <yanghui.def@gmail.com>

it's much better to use __func__

Signed-off-by: YangHui <yanghui.def@gmail.com>
---
 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



             reply	other threads:[~2020-06-15 11:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-15 11:28 hui yang [this message]
2020-06-15 11:47 ` [PATCH] mm: use __func__ replace function name Matthew Wilcox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1592220534-4656-1-git-send-email-yanghui.def@gmail.com \
    --to=yanghui.def@gmail.com \
    --cc=cl@linux.com \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=linux-mm@kvack.org \
    --cc=penberg@kernel.org \
    --cc=rientjes@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).