On Mon, 13 Apr 2020 14:30:29 +0800 alvinx.zh...@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);