Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp176606imp; Wed, 20 Feb 2019 22:26:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IZl2MdZXG2IUkOjpT6/gvKUI8FG867EQB8+Vtn33obmP3L+Q+NY/FgVsXqHtXuLfnrlv54O X-Received: by 2002:a17:902:8f83:: with SMTP id z3mr39905175plo.328.1550730391672; Wed, 20 Feb 2019 22:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550730391; cv=none; d=google.com; s=arc-20160816; b=HI1B7kePs9zS6RbzhXCXi2zGX876gCjAuOhVa0wgo9+vVG4u8xFUNXNu1Pr+EXPtXr DmwOZe38ixmJxTIs5it4eAcyFuvI4/1h+t3BDsSAOKG6wop++iGxQ/IB5nASzZkkDujs 6gFmM3QlXiSkuGog41PvYSgqQMZfZAH3Z2DVlpCz5lgbuMwPDEvQQa5DQGk46+Bg/SD0 z36fqFZv9/CDqQgBLWJslwVy0nxaTqAGL4Vpmy4kFfyInzD7vUvzv2GwY8yAjGKwopSg RlKWl+q0l33I2gmVB+rny8hi5iRUk8weHU/N8/X5aVbex5NrgEfA+EiJM1TUt4O1IbgN O7AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=7xMYSM2aOe6bSPqc/45ReqpRuLE1CcWNfUMtbsqiRfY=; b=S2NuhvOfOI+EHeYupBHaEaEk5dyTlAax5stFSgEVLLufxxrIFrOKfDQZA2v6RsZ9ae Mbe8bPhg1cvhQ9igv5WUDcSafz3fecH2sLDe4DWZilWqPk1LXBI26EfwnI/CdcG9igKL FlqfA4sAILXPCmd9LAxyVL1RWMEFLl2O962tnHk7xA3yLRRaG+RlaDl+Yz2QLSjjovpE y8oWJhxiuC8Jr0YRM/m2j1E/oXr7ls9ezhw3Q9Ac/daDz5nuin0Ua2CHaRH0Epw7L86+ Cdm7PG8cvqM1FS05JmJxCn9EB5uA/5zDzQCx7OQVQs6VO8UvqF7OLlbvq0JkinZjFJ4B 0kjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K1pyr4O4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z21si21319412plo.317.2019.02.20.22.26.16; Wed, 20 Feb 2019 22:26:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K1pyr4O4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726553AbfBUGZ4 (ORCPT + 99 others); Thu, 21 Feb 2019 01:25:56 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:44563 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbfBUGZz (ORCPT ); Thu, 21 Feb 2019 01:25:55 -0500 Received: by mail-qk1-f195.google.com with SMTP id r21so3612230qkl.11; Wed, 20 Feb 2019 22:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=7xMYSM2aOe6bSPqc/45ReqpRuLE1CcWNfUMtbsqiRfY=; b=K1pyr4O4Lurjy/nxlGbpfORCbQCH2xI+AEVdpUDlGKerJ9NatgLXamL5mrdXXOCmEe K1fWwyLYrAKuKNzA6BZWDttGBhRcCt93Mnn+4JRBVtsnYNFjflfEvQQM3J3fgoZnfTYZ VQbI8MuzTiE+R2su8ZBrcpMaVt3xGOymw6y1unrQGqrRMboOZMyUB5rg2VqpLUGyehVR ZOEZNilC2vWe0d7mBWLu7jfxYFt/PbGHWEWi7FnOwVs4IevYt9R/297Wo/99nRA4FbTq U0FlwhHTNabtaXTM6q2Nhqk7uno+7i3w6Vtz+ta5twvm3iUj4apw3qbx1TKQgdGeJvSx aXvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=7xMYSM2aOe6bSPqc/45ReqpRuLE1CcWNfUMtbsqiRfY=; b=f7H41J6xtYm6xilsBMvZ5t+W4CK7kypYeNx+SGcaQkhpPegPAQ7zuwKTMD4QImCM1b 4aAyOMSUCxOOIQm0jltad/Xg27T1/y61BdfFZEFTFHz4X26RVVrAgjGa8RuooqOvCRJe iSVu1ZJdM/QFTIYqClOSVB7M86vTuHqB8PBfT8eRhaFOTfChHFy+1GsuW8eOyAPm8z3+ cL7h0x4pq5ABDnyJfWrM4kS6x0UJa5jzxYVWTVePxkLYnPuO6n2o6zFBOUpeVJ1t0GI5 Wud5q5h2qMWmUwQfIiwk6f/HJ4VuA3b/ayscV3TV7waaH9CyCObeHc2poCkb8QP6broT 7u3g== X-Gm-Message-State: AHQUAuaGhKmZq+mxAB3XN+aHhJOsTONv4C6OXxfy6chL8d+oL+r3qTyQ XDY6Q6EELh7VwAX3lmHyogvfK9YTehkIlnMxDKw= X-Received: by 2002:a37:4707:: with SMTP id u7mr27283384qka.296.1550730354152; Wed, 20 Feb 2019 22:25:54 -0800 (PST) MIME-Version: 1.0 References: <20180517182659.GB27807@pd.tnic> In-Reply-To: Reply-To: bjorn@helgaas.com From: Bjorn Helgaas Date: Wed, 20 Feb 2019 22:25:42 -0800 Message-ID: Subject: Re: [tip:x86/cleanups] x86: Remove pr_fmt duplicate logging prefixes To: Joe Perches Cc: Borislav Petkov , mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 11:45 AM Joe Perches wrote: > > On Thu, 2018-05-17 at 20:27 +0200, Borislav Petkov wrote: > > On Sun, May 13, 2018 at 12:27:45PM -0700, tip-bot for Joe Perches wrote: > > > Commit-ID: 1de392f5d5e803663abbd8ed084233f154152bcd > > > Gitweb: https://git.kernel.org/tip/1de392f5d5e803663abbd8ed084233f154152bcd > > > Author: Joe Perches > > > AuthorDate: Thu, 10 May 2018 08:45:30 -0700 > > > Committer: Thomas Gleixner > > > CommitDate: Sun, 13 May 2018 21:25:18 +0200 > > > > > > x86: Remove pr_fmt duplicate logging prefixes > > > > > > Converting pr_fmt from a default simple #define to use KBUILD_MODNAME > > > added some duplicate prefixes. > > > > > > Remove the duplicate prefixes. > [] > > Maybe I'm missing something but this dropped the prefixes now > > completely: > > > > -e820: BIOS-provided physical RAM map: > > +BIOS-provided physical RAM map: > > > > -e820: last_pfn = 0x43f000 max_arch_pfn = 0x400000000 > > +last_pfn = 0x43f000 max_arch_pfn = 0x400000000 > > > > -e820: last_pfn = 0x9d000 max_arch_pfn = 0x400000000 > > +last_pfn = 0x9d000 max_arch_pfn = 0x400000000 > > > > ... > > > > I don't think that was the intention. > > Hi Borislav > > It wasn't and isn't the intention. > > This is a patch _series_, and all of the patches > from 4-18 depend on patch 3 which converts the > generic define in include/linux/printk.h > > from > #define pr_fmt(fmt) fmt > to > #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > > Perhaps a better option, which could be done in > a v2 of the series, is to add a temporary > #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > to each file modified in patches 4-18 and then > allow the follow-on script described in the 0/18 > cover letter to remove those #defines Was there ever a v2? What I see from 1de392f5d5e8 ("x86: Remove pr_fmt duplicate logging prefixes") is exactly what Borislav noted. For example, https://bugzilla.kernel.org/attachment.cgi?id=281007 is a v4.20 dmesg log from https://bugzilla.kernel.org/show_bug.cgi?id=202511 . That bug also has a v4.17 dmesg log (https://bugzilla.kernel.org/attachment.cgi?id=281011). Comparing them shows: -Linux version 4.17.19-gentoo (root@survivor) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)) #2 SMP Sat Sep 22 09:53:01 EDT 2018 +Linux version 4.20.6-gentoo (root@survivor) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)) #1 SMP Tue Feb 5 09:46:51 EST 2019 ... -e820: BIOS-provided physical RAM map: +BIOS-provided physical RAM map: Not a big deal as far as I'm concerned, but it is a minor annoyance. Bjorn