[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ebef7d4f-1e3d-b70f-741b-3f06b820289a@deltatee.com>
Date: Tue, 10 Jan 2017 16:34:41 -0700
From: Logan Gunthorpe <logang@...tatee.com>
To: Joe Perches <joe@...ches.com>, Jon Mason <jdmason@...zu.us>
Cc: Xiangliang Yu <Xiangliang.Yu@....com>,
Dave Jiang <dave.jiang@...el.com>,
Allen Hubbe <Allen.Hubbe@....com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-ntb@...glegroups.com,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 0/2] Style fixes: open code obfuscating macros
On 10/01/17 04:06 PM, Joe Perches wrote:
> It might also be better to add and use YA
> logging macro like ndev_dbg
>
> #define ndev_dvg(ndev, fmt, ...) \
> dev_dbg(&(ndev)->ntb.pdev->dev, fmt, ##__VA_ARGS__)
>
> so that the new temporaries that are used just
> for debugging are not required.
>
I feel like that's going in the exact opposite direction from what Greg
was looking for... I think the point is to hide less of where the device
is coming from, not to create a new and different macro that hides
things in a different way.
Or, more likely, I _think_ Greg would suggest that this is showing that
the driver model isn't really being used properly. Perhaps, we should be
printing against the ntb struct device instead of the pci device so
there is no dereferencing.
Logan
Powered by blists - more mailing lists