From patchwork Fri Jun 18 10:59:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gumingtao X-Patchwork-Id: 12331047 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39EEAC48BDF for ; Fri, 18 Jun 2021 10:59:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B86D8613F0 for ; Fri, 18 Jun 2021 10:59:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B86D8613F0 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 240216B0070; Fri, 18 Jun 2021 06:59:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F0676B0071; Fri, 18 Jun 2021 06:59:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 06AFF6B0072; Fri, 18 Jun 2021 06:59:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0239.hostedemail.com [216.40.44.239]) by kanga.kvack.org (Postfix) with ESMTP id C7F766B0070 for ; Fri, 18 Jun 2021 06:59:10 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 4DC67180AD806 for ; Fri, 18 Jun 2021 10:59:10 +0000 (UTC) X-FDA: 78266547660.10.8E86ED2 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by imf13.hostedemail.com (Postfix) with ESMTP id DACD4E0004CD for ; Fri, 18 Jun 2021 10:59:08 +0000 (UTC) Received: by mail-pg1-f172.google.com with SMTP id n12so7471008pgs.13 for ; Fri, 18 Jun 2021 03:59:09 -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=e545N6sFNQ6o79pBREpnT2Z+rEdK47XJm3J1l9SSnV0=; b=PywNZv5oi2BMbkcjOdv2KlT7vdwGp0KQdL1nxl9N3ltb49XYhfcTPAbKLzn4dcKvqn pnNbI7b8+ijH5BN+/geLZ5d0qWeUmSHzwx8twoXuVia2N9NxXvvYun5OSzmp43SngELj pKIygsWCZW9250VVbnFuJNjkKLQriDJkRNmi0wvkWiEw9y7T3XGIbyDJZ6DBg6J1o7Wf se4LC5x6D8QscrjiI+mB81ky5t2efGL9BHCpJ1ktsFDqn1VAgKHDCCW4byKON4OFMpPB U7CcSvP5AFlvITGutA50N/htaNba/JNKws6P49bEJmaNEbbPfDC9TY30oiAR2gegRdFV Di5w== 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=e545N6sFNQ6o79pBREpnT2Z+rEdK47XJm3J1l9SSnV0=; b=Wp6fj6yT2xfmZW+7SJbgQ0ljm8sZ/85gLNZo/b/NDDsQikqesLShAuGC/O+/rIGboK LsrAZRLWPlXh7JWPSntZAvtc5zsuf0bzz21F52fEpkHUVoHFjqk0HU5J32/MAFqjvmh2 rbikeNJN1lM9/7rFqd3yx2/2D4RQzQv569DLnv3VMTE5wO7nMuA9GRXe/zTJ4ECM7yep 7KmOLhb03ayoAQMN0sPUgcnZOUg2aShFOjovGB9y58Bgx0JkmYVJTnT4VRGqIe3BuN/C QvBu4dShoyCrpF1VaiGV1uNKYMIZBcHC9vKROZRZnHCnhMxjlqF72h2Ipa6ea0gHnt9j aXcw== X-Gm-Message-State: AOAM532qMWXVzolfq/s0XdujnERhztpzb65pcwPC9XmE89e+iAoGKskb w2kc+5i4rXkxDvHOjNksAM4= X-Google-Smtp-Source: ABdhPJxsAX8Jb/zRhXLLXhqEft2ZcEQdqM7H8qc+grZNHVz5zkAc3K15f9v4OElku2XQcuIH8COFcg== X-Received: by 2002:aa7:829a:0:b029:2e9:e53:198d with SMTP id s26-20020aa7829a0000b02902e90e53198dmr4488637pfm.72.1624013948969; Fri, 18 Jun 2021 03:59:08 -0700 (PDT) Received: from localhost ([209.9.72.215]) by smtp.gmail.com with ESMTPSA id a11sm7859380pfl.168.2021.06.18.03.59.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jun 2021 03:59:08 -0700 (PDT) From: gumingtao X-Google-Original-From: gumingtao To: cl@linux.com Cc: penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz, nathan@kernel.org, ndesaulniers@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, gumingtao Subject: [PATCH] slab: Use %s instead of function name Date: Fri, 18 Jun 2021 18:59:03 +0800 Message-Id: <1624013943-13935-1-git-send-email-gumingtao@xiaomi.com> X-Mailer: git-send-email 2.7.4 Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=PywNZv5o; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf13.hostedemail.com: domain of gumingtao1225@gmail.com designates 209.85.215.172 as permitted sender) smtp.mailfrom=gumingtao1225@gmail.com X-Stat-Signature: 3b6hhnwomouknx1ga4fhs6dtz4hi5p69 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: DACD4E0004CD X-HE-Tag: 1624013948-495429 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: It is better to replace the function name with %s. Signed-off-by: gumingtao --- 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 a4a5714..36127dc 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -381,8 +381,8 @@ kmem_cache_create_usercopy(const char *name, panic("kmem_cache_create: Failed to create slab '%s'. Error %d\n", name, err); else { - pr_warn("kmem_cache_create(%s) failed with error %d\n", - name, err); + pr_warn("%s(%s) failed with error %d\n", + __func__, name, err); dump_stack(); } return NULL;