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

From: Jean Delvare
Date: Wed Mar 10 2021 - 09:58:05 EST


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@xxxxxxxxxxxxxxx>
> ---
> drivers/pci/probe.c | 12 +++---------
> include/linux/pci.h | 9 +++++++++
> 2 files changed, 12 insertions(+), 9 deletions(-)
> (...)

Nice.

Reviewed-by: Jean Delvare <jdelvare@xxxxxxx>

(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