summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKevin Traynor <ktraynor@redhat.com>2018-08-03 20:03:32 +0100
committerIan Stokes <ian.stokes@intel.com>2018-08-08 22:06:21 +0100
commit51c6a5a3c869ca5327ccd7be73a6f585e0028875 (patch)
treeed490d51f586edc21b7f1728f9c0e9632314f999 /lib
parent7e1de65e8dfbd8a93582102df2d36cf58d289e4c (diff)
downloadopenvswitch-51c6a5a3c869ca5327ccd7be73a6f585e0028875.tar.gz
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 <ktraynor@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/netdev-dpdk.c2
1 files changed, 1 insertions, 1 deletions
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);