From patchwork Mon Jun 15 11:28:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hui yang X-Patchwork-Id: 11604573 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7151C13B1 for ; Mon, 15 Jun 2020 11:29:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3D3AD2068E for ; Mon, 15 Jun 2020 11:29:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bH0CN0OE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D3AD2068E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4885C6B0003; Mon, 15 Jun 2020 07:29:07 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 439736B0005; Mon, 15 Jun 2020 07:29:07 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 34E126B0006; Mon, 15 Jun 2020 07:29:07 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0127.hostedemail.com [216.40.44.127]) by kanga.kvack.org (Postfix) with ESMTP id 1A6CF6B0003 for ; Mon, 15 Jun 2020 07:29:07 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id A4B523573 for ; Mon, 15 Jun 2020 11:29:06 +0000 (UTC) X-FDA: 76931224692.03.cub33_420298826df6 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin03.hostedemail.com (Postfix) with ESMTP id 379B128A4E8 for ; Mon, 15 Jun 2020 11:29:06 +0000 (UTC) X-Spam-Summary: 2,0,0,393efd8339f459c5,d41d8cd98f00b204,yanghui.def@gmail.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1437:1534:1539:1567:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3867:3872:4321:4605:5007:6261:6653:7514:7576:8957:9413:10004:11026:11658:11914:12296:12297:12517:12519:12555:12679:12895:12986:13069:13311:13357:14181:14384:14394:14687:14721:21080:21444:21451:21627:21666:30029:30054,0,RBL:209.85.214.196:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: cub33_420298826df6 X-Filterd-Recvd-Size: 3280 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by imf28.hostedemail.com (Postfix) with ESMTP for ; Mon, 15 Jun 2020 11:29:05 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id n9so6712474plk.1 for ; Mon, 15 Jun 2020 04:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Lk6+iy3Wp6LPscY3cZtff+7tpBvL13y29g9sUUaU+wY=; b=bH0CN0OEIhnraDRhfn+jBj5M10bXiw57OGuHNpdpdbg/eICU+b0X7KchoBi4+qvrpU xuE16HfrL4fv5fWA4QVNCBPr3itL3vpx+adfSEx7VvN3wP31BA9GEOPK7oTbkOCfq/3T 8nrKZlVkzLuufztDr7g47y/jInnP9F0RmAwjni2woh6EjURvywA99Qffduk2N0xqTdKB rq36rcXWL29Mfvab8CKKbiHwSNPoJUYuVpJS+OYsVusrX1sKvKvekZNJVmuWG0IaAe22 pX30ie3uGr/hg+5Eqq2Lmrr5NIFd9zvt7miPRwFdj08p+JNxUD1UObvjp27xqE1QhzEz XgSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Lk6+iy3Wp6LPscY3cZtff+7tpBvL13y29g9sUUaU+wY=; b=aethXNvEEDBpQkC1FLv983Je5o6CB2lmm4tLWdAybZGmT91UN8QteYz7sircDvvpsx GkOj1W8zKrCaqh4UQcVLPBId/KqghruEpUOfCuXRpqI1pSQgBhYFzjH7emaWvw16WvVa ZgIT2nOY8kH7Oh2IBL0ZRG9K9fgAYJjvSQsv1WH+A4JLFHD8Yfiq90JrC9rf84fyyFeL NYrfX66QMuSwJKhyuy4k525lM79wBxYroGrt6rQq+xbH7dW35cH6fxhfU/1agSRTVfdr dNE2NFL1Qm4DmXVXJ29dVO53HXv0dwII85QXzj3BLkK73hHJSOLcwbnGOXZrYok640LJ GTLA== X-Gm-Message-State: AOAM532jb7su73VBMZnQvDcBKbcxbcAR0Pnry5DDOciuT7kjlv77BjN0 lYH1Q7r3qkFXvQIkxF+W+5k= X-Google-Smtp-Source: ABdhPJzhx3dpo15EZZxbX3NN6muCsj29WX4x8gDhUO93DHyX7fYcRI+CEw9OPJHsXXUyWYa+diyb0A== X-Received: by 2002:a17:902:ab8e:: with SMTP id f14mr8664619plr.80.1592220544758; Mon, 15 Jun 2020 04:29:04 -0700 (PDT) Received: from ubuntu.localdomain ([118.193.245.26]) by smtp.gmail.com with ESMTPSA id a5sm13576479pfi.41.2020.06.15.04.29.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2020 04:29:04 -0700 (PDT) From: hui yang To: cl@linux.com Cc: penberg@kernel.org, rientjes@google.com, linux-mm@kvack.org, iamjoonsoo.kim@lge.com, YangHui Subject: [PATCH] mm: use __func__ replace function name Date: Mon, 15 Jun 2020 19:28:54 +0800 Message-Id: <1592220534-4656-1-git-send-email-yanghui.def@gmail.com> X-Mailer: git-send-email 2.7.4 X-Rspamd-Queue-Id: 379B128A4E8 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000020, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: YangHui it's much better to use __func__ Signed-off-by: YangHui --- 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: