[dpdk-dev] [PATCH v3 03/11] net/igc: implement device base ops

Stephen Hemminger stephen at networkplumber.org
Mon Apr 13 17:23:00 CEST 2020


On Mon, 13 Apr 2020 14:30:29 +0800
alvinx.zhang at intel.com wrote:

> +		PMD_DRV_LOG(DEBUG, "PCI Address: %04d:%02d:%02d:%d",
> +				pci_dev->addr.domain,
> +				pci_dev->addr.bus,
> +				pci_dev->addr.devid,
> +				pci_dev->addr.function);

If you want, there is a standard format for PCI already.
Please use that everywhere since it prints in proper hex.

		PMD_DRV_LOG(DEBUG, "PCI Address: " PCI_PRI_FMT,
				pci_dev->addr.domain,
				pci_dev->addr.bus,
				pci_dev->addr.devid,
				pci_dev->addr.function);


More information about the dev mailing list