From b98c6058afd6ccc4bf53349d84ff8522910342db Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Fri, 3 Aug 2018 20:03:32 +0100 Subject: [PATCH] netdev-dpdk: Use hex for PCI vendor ID. Match the prefix and formatting. Fixes: 8a9562d21a40 ("dpif-netdev: Add DPDK netdev.") Cc: pshelar@ovn.org Signed-off-by: Kevin Traynor Signed-off-by: Ian Stokes --- lib/netdev-dpdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index e40b03a5c..ac02a09ac 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -3041,7 +3041,7 @@ netdev_dpdk_get_status(const struct netdev *netdev, struct smap *args) dev_info.driver_name); if (dev_info.pci_dev) { - smap_add_format(args, "pci-vendor_id", "0x%u", + smap_add_format(args, "pci-vendor_id", "0x%x", dev_info.pci_dev->id.vendor_id); smap_add_format(args, "pci-device_id", "0x%x", dev_info.pci_dev->id.device_id); -- 2.39.2