aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/linux/pci.c2
-rw-r--r--src/vlib/pci/pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vlib/linux/pci.c b/src/vlib/linux/pci.c
index 66787992209..e049b239f48 100644
--- a/src/vlib/linux/pci.c
+++ b/src/vlib/linux/pci.c
@@ -389,7 +389,7 @@ vlib_pci_get_device_root_bus (vlib_pci_addr_t *addr, vlib_pci_addr_t *root_bus)
{
u8 *rel_path = 0, *abs_path = 0, *link_path = 0;
unformat_input_t input;
- u32 fd = open (sysfs_pci_dev_path, O_RDONLY);
+ int fd = open (sysfs_pci_dev_path, O_RDONLY);
u32 size = 0;
u32 domain = 0, bus;
clib_error_t *err = NULL;
diff --git a/src/vlib/pci/pci.c b/src/vlib/pci/pci.c
index 5535eb1709c..249a26b1d21 100644
--- a/src/vlib/pci/pci.c
+++ b/src/vlib/pci/pci.c
@@ -158,7 +158,7 @@ format_vlib_pci_link_port (u8 *s, va_list *va)
if (!r)
return format (s, "unknown");
- return format (s, "P%d", r->link_status >> 24);
+ return format (s, "P%d", r->link_capabilities >> 24);
}
u8 *