[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190506082934.GI9224@smile.fi.intel.com>
Date: Mon, 6 May 2019 11:29:34 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Bjorn Helgaas <helgaas@...nel.org>
Cc: Frederick Lawler <fred@...dlawl.com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, mika.westerberg@...ux.intel.com,
lukas@...ner.de, keith.busch@...el.com, mr.nuke.me@...il.com,
liudongdong3@...wei.com, thesven73@...il.com
Subject: Re: [PATCH v2 6/9] PCI: hotplug: Prefix dmesg logs with PCIe service
name
On Fri, May 03, 2019 at 03:04:37PM -0500, Bjorn Helgaas wrote:
> On Thu, May 02, 2019 at 10:59:43PM -0500, Frederick Lawler wrote:
> > +#define pr_fmt(fmt) "pciehp: " fmt
> > +#define dev_fmt pr_fmt
>
> Can these go in pciehp.h?
In general, no, it can't. The pr_fmt() / dev_fmt() macro must precede any
header inclusion, thus it makes them position dependent.
Otherwise, one has to guarantee above by accurately keeping a header inclusion
ordering.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists