Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1507049pxj; Fri, 18 Jun 2021 08:35:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxqrmJ8LBHMUTcibuGx2qNPpb/2u1wB7+iWUSDWAJdxXKuSouazReAA5g2uuVXnWJOdo6d X-Received: by 2002:a50:8fc3:: with SMTP id y61mr5654045edy.107.1624030522857; Fri, 18 Jun 2021 08:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624030522; cv=none; d=google.com; s=arc-20160816; b=yckugJ9+6sM3gRKtjDkLtLyYHUfzkIKBPkjGDTEiGPVK7lk0zSAQCont9AL4Akplpz lv0iNq0q8bV0tBzP6sglcoVf/uT6JSPkOMOBkn2usFUqleMHhnHSJEe7WIxv2OF0J6/M r5KAthFEMBkjC1ZhstyegCfmpDCuxWYd8daFDKGNigiifmMiSlF1e7MQYfAYuKfsyb4M /GowVjWZ/AEboS+x5Zdbuh30pFfp4+WICvd/2Uu26Xb5JWnRPuy88DJcMevffY7LkXVx 0KinkIuU8iAlo4pGnNWZUq+jTXWii/daR5sjtINE7rf56Uki3S+cciEKEvUOSwlQhkFQ Tvcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=e545N6sFNQ6o79pBREpnT2Z+rEdK47XJm3J1l9SSnV0=; b=Hb4TvhYyrOQUjXv7uvSGZyCK4jkZAHhUi/UoA7/d8+n8onppIXHF/VSINy+yG1pz5w 8rNqj8Pny2zAMiOicCe8L9ZlYxyBxuFfhn3+PSTH6Dzapi+zcD62gQYnmTjrfppOUXVB kF0OVXSI6L3vrESFyXTzNLR0AH4sl1JjSh35qFAnFCU+QYv6X9HdPjHfzAR5dILCu5LA AcjaQWYuz/Dj3BXO4N4rUpsR/Bx7zg89tEYQaoSEYbk8alhrUMPeuHAnzoOR0ZVN+84V Qd/9WZFUog+Tnp7H6Yw383+7CuewKMW5aYP4DxEE51CPk1Da957Sznq0iETvYM0f88ae HeZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PywNZv5o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz1si2548648ejc.257.2021.06.18.08.34.59; Fri, 18 Jun 2021 08:35:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PywNZv5o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233863AbhFRLBT (ORCPT + 99 others); Fri, 18 Jun 2021 07:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbhFRLBS (ORCPT ); Fri, 18 Jun 2021 07:01:18 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 751D7C061574 for ; Fri, 18 Jun 2021 03:59:09 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id t13so7481725pgu.11 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=RCe5bCjuAn8XwSPWdtWRkaraeiQMBmEXWs2BuV516U3mMx9HNgVUZy3xOGNAb2vDTr inn65w/XDrX9eQxObOXRL96mqOlYhm9Uk24O++ZeBP5VflKp+Mu4VcK79NaGgBRzWkb0 XqzsttcZkZyvG9JxJvNwFae7ivtOfoTyT6XjLr7nS6uwvHH3oQ3VD1QKXbUXNHDa6W7V I4zrEv6Ca2e0K7Yc4kd/sA7VB2XNegV8KIZyDpsHPkk1MYAl60Bz7Nm6KKOb6nMKjUv8 g89Qc0iMpRbYywJDvmju10K6jAP/7S7g1B3vUDSPhb9AH9MIWApXBImb5zhM/P0k4GXz cl9Q== X-Gm-Message-State: AOAM530l+Uzxkg/4/pzuO+gky9Nh/vOMvUjLv5DvMsk7end3xBcZNk+X ZaxnoW2pMwJ9kOQuZf59yzI= 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.7.4