Re: [dpdk-dev] [PATCH v2] pci: pad vendor and device ID to 4 digits

2017-07-05 Thread Thomas Monjalon
23/06/2017 20:20, Daniel Verkamp: > Some PCI vendor and device IDs have leading zeros. > > Signed-off-by: Daniel Verkamp > --- > --- a/lib/librte_eal/common/include/rte_pci.h > +++ b/lib/librte_eal/common/include/rte_pci.h > @@ -68,6 +68,9 @@ const char *pci_get_sysfs_path(void); > /** Short for

[dpdk-dev] [PATCH v2] pci: pad vendor and device ID to 4 digits

2017-06-23 Thread Daniel Verkamp
Some PCI vendor and device IDs have leading zeros. Signed-off-by: Daniel Verkamp --- v2: added #define for format string, use %.4 style and PRIx16 lib/librte_eal/common/eal_common_pci.c | 8 lib/librte_eal/common/include/rte_pci.h | 3 +++ 2 files changed, 7 insertions(+), 4 deletion