Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1263923pxf; Fri, 19 Mar 2021 03:15:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6UB0Rixe5eJj8c4sYE4uiNRzOPy9UHc03fBebib5qzNtbHy6OMBxm9e7Oq+vJh4MoN5Ix X-Received: by 2002:a17:906:5918:: with SMTP id h24mr3454143ejq.501.1616148913497; Fri, 19 Mar 2021 03:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616148913; cv=none; d=google.com; s=arc-20160816; b=xaKE/jiQwoFM2T2ckSzFekrftSv2sBBYmiufuDIYSrudURX+PtyRIbSKeMdmBFyyGn g3usFQ/Ecxgd7Dc823XtDUySYZfilAurGhE1KPY+zmVtva43s7nruYQdmD5qyCa61w8p tKosQYXUaRoWCo04mXeS65Vf6tuhbdJrm5ZprHZTsJkz4IqrX4oYO4ryrK9XMklVzzGt +qi4XaBNRbCbeL/FrKz5WHSp0vFvqFndJ+cAhW0PRnriGoEze8JbO+PNH0JQmuV4X6X9 z4XyK3ZHBr4vkMW5ApJAOQvwTp9E0lnA1lccm/E1K30bB0yrIWz2qxr1ifBHKKtu/ZDv vnGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LGnXsS0yyyDbPQIbsDlem74w/lBqbAQTEjcNoC1ZgT0=; b=JhJO5HT8c17KT01Law6y5QESmhcJugP2Fnh7HY+szCuiuJRpl7tgi5fzLcq0caha9I noZXhSKURtUJS3A8E9qIIs5hNASA6dCgtYvk/Ws81AI7WvVYeUKgsgxXTzY2kXmnqKrN ev/uGopCQxewof+8pkgk0qts0/YxpI7YISUYyxw4XQjI6RF+BtQRGSaXATGvo3cm3ako 2tUEzc6JhBGEEYhl+dOZJhF/rSNztBxtTrB/sWfLGVlLknadwRzlYr4eErSmmM/nW5FX ImeVhmP1CnYlJery3GU6m7KE5m5LRmkwkYgnQsCq1Nsf59NgcbEptwXlEW78ANTnl8PC MDVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UOpu8GIV; 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 mh2si3592908ejb.107.2021.03.19.03.14.51; Fri, 19 Mar 2021 03:15:13 -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=UOpu8GIV; 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 S229991AbhCSKNr (ORCPT + 99 others); Fri, 19 Mar 2021 06:13:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbhCSKN3 (ORCPT ); Fri, 19 Mar 2021 06:13:29 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9771BC06174A for ; Fri, 19 Mar 2021 03:13:29 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id 19so7524564ilj.2 for ; Fri, 19 Mar 2021 03:13:29 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=LGnXsS0yyyDbPQIbsDlem74w/lBqbAQTEjcNoC1ZgT0=; b=UOpu8GIV7PLceiPZTQ15dbRbiTwlLvVureKOpFDN26Q6vFVPtCTBUcTBRi+Zg9/u71 v/WvO/hjn8KQxAriyr9YRmYX7jOP6iFqI0RujF+QXPlUcp/lte+oyEUCy972ncVe7l0g i6d2tKvDQ+wurX0zu0JT9DwG4HrGT0XiFMdfvLb/Xoj+F7nuE2rlzqbz+ZeUqky4XzmL VoaWB937GVR3F0wy4NezX+1UpaEuPNBB9KKbHvVBZr7LPSntDTeo7Kj2TplVfol6m1pe UeprY38L+9TdhVujRMC5Rrwnv1y2UGYwxTUf8ZoCKS5srIJDPajKREnF6RdSY9VT8FkB +Qgg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LGnXsS0yyyDbPQIbsDlem74w/lBqbAQTEjcNoC1ZgT0=; b=uYoaqfQcHQJ+jhTUQa110du2X3coiWsU7vwWTM5ctget8eYedYAJcRx1O64h5dH8xf OXj5n8sajJL/H6wz08W0GsB78SJAkSA+eg0fDrWnMteGDlIXl/xui8RBXroHDghcuiEY Z2442MgZWEKvNifnSkaPVUs8UZfrcb7sn+GDH99J4tJ9+xWqECqsKE9/2C0ox35AB2ht VCgZ/rM/TPC8QK8M/m7eA6rZuaCPTZDaBV7eOFRFMeT5awyWowCfu9CfFKaiGUzfc8j3 PnSDy9vykEm3orqbwfMZB1UWeohp8JW1y9MeeqkvA0ovMb/ZDRAvzBwP9YgFChJ6mjxU GTUA== X-Gm-Message-State: AOAM531/dO0+GwybjYSo07TOT65h9t7uVxn258Tk1IaVMoYz9pElfqMP BfKpYQDrcQxaZ57MNV5XdkQ= X-Received: by 2002:a05:6e02:968:: with SMTP id q8mr2238151ilt.31.1616148809127; Fri, 19 Mar 2021 03:13:29 -0700 (PDT) Received: from localhost.localdomain ([50.236.19.102]) by smtp.gmail.com with ESMTPSA id v19sm2372827ilj.60.2021.03.19.03.13.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Mar 2021 03:13:28 -0700 (PDT) From: Yafang Shao To: pmladek@suse.com, willy@infradead.org, andriy.shevchenko@linux.intel.com, david@redhat.com, linmiaohe@huawei.com, vbabka@suse.cz, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, rostedt@goodmis.org, sergey.senozhatsky@gmail.com, joe@perches.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, lkp@intel.com, Yafang Shao Subject: [PATCH v6 resend 2/3] mm, slub: don't combine pr_err with INFO Date: Fri, 19 Mar 2021 18:12:45 +0800 Message-Id: <20210319101246.73513-3-laoar.shao@gmail.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20210319101246.73513-1-laoar.shao@gmail.com> References: <20210319101246.73513-1-laoar.shao@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is strange to combine "pr_err" with "INFO", so let's remove the prefix completely. This patch is motivated by David's comment[1]. - before the patch [ 8846.517809] INFO: Slab 0x00000000f42a2c60 objects=33 used=3 fp=0x0000000060d32ca8 flags=0x17ffffc0010200(slab|head) - after the patch [ 6343.396602] Slab 0x000000004382e02b objects=33 used=3 fp=0x000000009ae06ffc flags=0x17ffffc0010200(slab|head) [1]. https://lore.kernel.org/linux-mm/b9c0f2b6-e9b0-0c36-ebdd-2bc684c5a762@redhat.com/#t Suggested-by: Vlastimil Babka Signed-off-by: Yafang Shao Acked-by: Vlastimil Babka Reviewed-by: Miaohe Lin Reviewed-by: Andy Shevchenko Reviewed-by: David Hildenbrand Acked-by: David Rientjes Cc: Matthew Wilcox --- mm/slub.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index ed3f728c1367..7ed388077633 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -624,7 +624,7 @@ static void print_track(const char *s, struct track *t, unsigned long pr_time) if (!t->addr) return; - pr_err("INFO: %s in %pS age=%lu cpu=%u pid=%d\n", + pr_err("%s in %pS age=%lu cpu=%u pid=%d\n", s, (void *)t->addr, pr_time - t->when, t->cpu, t->pid); #ifdef CONFIG_STACKTRACE { @@ -650,7 +650,7 @@ void print_tracking(struct kmem_cache *s, void *object) static void print_page_info(struct page *page) { - pr_err("INFO: Slab 0x%p objects=%u used=%u fp=0x%p flags=%#lx(%pGp)\n", + pr_err("Slab 0x%p objects=%u used=%u fp=0x%p flags=%#lx(%pGp)\n", page, page->objects, page->inuse, page->freelist, page->flags, &page->flags); @@ -707,7 +707,7 @@ static void print_trailer(struct kmem_cache *s, struct page *page, u8 *p) print_page_info(page); - pr_err("INFO: Object 0x%p @offset=%tu fp=0x%p\n\n", + pr_err("Object 0x%p @offset=%tu fp=0x%p\n\n", p, p - addr, get_freepointer(s, p)); if (s->flags & SLAB_RED_ZONE) @@ -800,7 +800,7 @@ static int check_bytes_and_report(struct kmem_cache *s, struct page *page, end--; slab_bug(s, "%s overwritten", what); - pr_err("INFO: 0x%p-0x%p @offset=%tu. First byte 0x%x instead of 0x%x\n", + pr_err("0x%p-0x%p @offset=%tu. First byte 0x%x instead of 0x%x\n", fault, end - 1, fault - addr, fault[0], value); print_trailer(s, page, object); @@ -3899,7 +3899,7 @@ static void list_slab_objects(struct kmem_cache *s, struct page *page, for_each_object(p, s, addr, page->objects) { if (!test_bit(__obj_to_index(s, addr, p), map)) { - pr_err("INFO: Object 0x%p @offset=%tu\n", p, p - addr); + pr_err("Object 0x%p @offset=%tu\n", p, p - addr); print_tracking(s, p); } } -- 2.18.2