Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp934650yba; Fri, 3 May 2019 12:58:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWlTa3Bt7sDOGn/ME2CNrNyMgUQIjSbb+7IJGMGS9SZdHzOVqmaWFIMjxyOaE/1oXF8HxZ X-Received: by 2002:a17:902:28ab:: with SMTP id f40mr13128468plb.297.1556913538547; Fri, 03 May 2019 12:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556913538; cv=none; d=google.com; s=arc-20160816; b=X3VjESYVqEbteL4o+9fUOE9eHi3M8wlCvqw4ToA05SoCp9cqyJz+MD0zVsu5tk0Ltu c+gI9HQkS/YeLmNSTcx2jYlzUKeZiF0EwTxyaQaKTDd9OneUyL1tIFVrpI3TtiRplw4G QC6GH3QV2XD5SxKOPv+tth+WSvNe389qljz/rgDls0Kv0W9CmJVt5oJ4FBZanOnrR2Wg uQiQjOeX/rbt0ixmbLEkSZ9h5i6t/EfMrV2HwPdV64ICH6c7NMQ3OvFnDNHjYFp5v9nk 9jyIBELAAwvjGlhdpLsEfVFK9RmxZ+WABn4fMXMlKhk2TPFCABrVPyORF48nABf87BIp UCOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yhQusJVuLUltpoojek/M6SxgENuc3SLXkSw67FN047Q=; b=KsVrt3xLDeb3zS+HDpiK7O32YAaMcnMRNUMpsyGXsCmPAPMuPio3/r9cMAl/hSEpaK 44G0w8qkGqRMro+jg3+slN9ruqRFZs/tKUlrXTHqND+E8pSAs3fbSkZBBgKiuN4c03E5 jzeKD8Lm/VLZS6TNTnhIrFypQL70UJtsqxFjtU5KGuLDESCr/gy+BoXBKXkCCTUYw1HZ hs3b3yv/tSjtyVt+bUMOtwcrdSw/WNgT6AbA9ibb5rZWjgKJC/A/CKZ3H7hpdWxcmwOR 5wTz3psCE9+XNa0mMXViT5jAsgDWuOVtBGhQ8ko4X955Nuo/iudEWzVp7j90nwpuT5oo ZX3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="QdlolEb/"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si3747643pgj.241.2019.05.03.12.58.43; Fri, 03 May 2019 12:58:58 -0700 (PDT) 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=@kernel.org header.s=default header.b="QdlolEb/"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726869AbfECT4A (ORCPT + 99 others); Fri, 3 May 2019 15:56:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:44418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfECTz7 (ORCPT ); Fri, 3 May 2019 15:55:59 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF6FD206BB; Fri, 3 May 2019 19:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556913359; bh=2fH2M5sQ8jmDxxjHYOTc0EzT1IE1mBjRWKLvF07ZDJI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QdlolEb/sTaBBzVCoGSEAnP7QrwOe2EBUEJgSzjARmEhUFjyZ+OxRoYJzYZe4mHr8 /QG0y2Ey0lDoO+ZhYS8ah17XQ4oP0SNWorijg5Sp/9MnjAW/+R+7IYy8oYIM3UhCMl AvxcLyHa4yoMIIurgg8fhK/vBdXDW6wtedLRjdVs= Date: Fri, 3 May 2019 14:55:57 -0500 From: Bjorn Helgaas To: Frederick Lawler Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, mika.westerberg@linux.intel.com, lukas@wunner.de, andriy.shevchenko@linux.intel.com, keith.busch@intel.com, mr.nuke.me@gmail.com, liudongdong3@huawei.com, thesven73@gmail.com Subject: Re: [PATCH v2 3/9] PCI/PME: Prefix dmesg logs with PCIe service name Message-ID: <20190503195557.GC180403@google.com> References: <20190503035946.23608-1-fred@fredlawl.com> <20190503035946.23608-4-fred@fredlawl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190503035946.23608-4-fred@fredlawl.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 02, 2019 at 10:59:40PM -0500, Frederick Lawler wrote: > Prefix dmesg logs with PCIe service name. ... to make it consistent with other PCIe services. It's interesting that there are three uses here: pci_dbg(port, "PME interrupt generated for non-existent device ...") pci_dbg(port, "Spurious native PME interrupt!\n") pci_info(port, "Signaling PME with IRQ %d\n", srv->irq) The first two use pci_dbg(), so whether it goes anywhere depends on CONFIG_DYNAMIC_DEBUG and DEBUG. To me they seem interesting enough to become pci_info(). And all three already include "PME", so I could go either way with adding the prefix. But I agree that having it consistent with the other services is probably a nice small hint that this is a PCIe port thing, not an endpoint thing. > Signed-off-by: Frederick Lawler > --- > drivers/pci/pcie/pme.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c > index 54d593d10396..d6698423a6d6 100644 > --- a/drivers/pci/pcie/pme.c > +++ b/drivers/pci/pcie/pme.c > @@ -7,6 +7,8 @@ > * Copyright (C) 2009 Rafael J. Wysocki , Novell Inc. > */ > > +#define dev_fmt(fmt) "PME: " fmt > + > #include > #include > #include > -- > 2.17.1 >