From c812ec0f444e42238a2a671d58c389e8f2109bbe Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 3 Jun 2022 08:36:15 +0200 Subject: dmioem: Nicer display of PCI device (HPE type 238) Use the standard PCI device format (bus:dev.fn) to designate the parent PCI device of the USB port, so it is much easier to lookup in the output of lspci for example. Signed-off-by: Jean Delvare Reviewed-by: Jerry Hoemann --- dmioem.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dmioem.c b/dmioem.c index d14b8df..759d778 100644 --- a/dmioem.c +++ b/dmioem.c @@ -666,9 +666,8 @@ static int dmi_decode_hp(const struct dmi_header *h) if (h->length < 0x0F) break; if (!(opt.flags & FLAG_QUIET)) pr_attr("Associated Handle", "0x%04X", WORD(data + 0x4)); - pr_attr("PCI Bus of Parent USB", "0x%04X", data[0x6]); - pr_attr("PCI Device of Parent USB", "0x%04X", data[0x7] >> 3); - pr_attr("PCI Function of Parent USB", "0x%04X", data[0x7] & 0x7); + pr_attr("PCI Device", "%02x:%02x.%x", data[0x6], + data[0x7] >> 3, data[0x7] & 0x7); dmi_hp_238_loc("Location", data[0x8]); dmi_hp_238_flags("Management Port", WORD(data + 0x9)); pr_attr("Port Instance", "%d", data[0xB]); -- cgit v1.2.1