diff --git a/utils/mqnic-bmc.c b/utils/mqnic-bmc.c index 1fb568a3e..acaefc4c0 100644 --- a/utils/mqnic-bmc.c +++ b/utils/mqnic-bmc.c @@ -228,6 +228,13 @@ int main(int argc, char *argv[]) return -1; } + if (dev->pci_device_path) + { + char *ptr = strrchr(dev->pci_device_path, '/'); + if (ptr) + printf("PCIe ID: %s\n", ptr+1); + } + printf("FPGA ID: 0x%08x\n", dev->fpga_id); printf("FW ID: 0x%08x\n", dev->fw_id); printf("FW version: %d.%d.%d.%d\n", dev->fw_ver >> 24, diff --git a/utils/mqnic-config.c b/utils/mqnic-config.c index 95603af4b..f932fd196 100644 --- a/utils/mqnic-config.c +++ b/utils/mqnic-config.c @@ -144,6 +144,13 @@ int main(int argc, char *argv[]) return -1; } + if (dev->pci_device_path) + { + char *ptr = strrchr(dev->pci_device_path, '/'); + if (ptr) + printf("PCIe ID: %s\n", ptr+1); + } + printf("FPGA ID: 0x%08x\n", dev->fpga_id); printf("FW ID: 0x%08x\n", dev->fw_id); printf("FW version: %d.%d.%d.%d\n", dev->fw_ver >> 24, diff --git a/utils/mqnic-dump.c b/utils/mqnic-dump.c index 15103c986..b16a87ad0 100644 --- a/utils/mqnic-dump.c +++ b/utils/mqnic-dump.c @@ -99,6 +99,13 @@ int main(int argc, char *argv[]) return -1; } + if (dev->pci_device_path) + { + char *ptr = strrchr(dev->pci_device_path, '/'); + if (ptr) + printf("PCIe ID: %s\n", ptr+1); + } + printf("Device-level register blocks:\n"); for (struct reg_block *rb = dev->rb_list; rb->type && rb->version; rb++) printf(" type 0x%08x (v %d.%d.%d.%d)\n", rb->type, rb->version >> 24,