Re: [PATCH v1 1/7] PCI: Introduce pci_bus_*() printing macros when device is not available

Jean Delvare
2021-03-10T14:58:06Z

On Mon, 8 Mar 2021 14:20:14 +0200, Andy Shevchenko wrote:
> In some cases PCI device structure is not available and we want to print
> information based on the bus and devfn parameters. For this cases introduce
> pci_bus_*() printing macros and replace in existing users.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/pci/probe.c | 12 +++---------
> include/linux/pci.h | 9 +++++++++
> 2 files changed, 12 insertions(+), 9 deletions(-)
> (...)

Nice.

Reviewed-by: Jean Delvare <jdelvare@suse.de>

(If you introduced a _debug flavor of that, it could probably be used in
drivers/pci/hotplug/pciehp_hpc.c.)

--
Jean Delvare
SUSE L3 Support