diff options
author | Jean Delvare <jdelvare@suse.de> | 2022-06-03 08:36:15 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2022-06-03 08:36:15 +0200 |
commit | c812ec0f444e42238a2a671d58c389e8f2109bbe (patch) | |
tree | 3c72947ee1cb5af7818b62e2f545783e87c8612b | |
parent | 4d8bdbc8b28767a573fa3cd214cad9b2ed7b075f (diff) | |
download | dmidecode-git-c812ec0f444e42238a2a671d58c389e8f2109bbe.tar.gz |
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 <jdelvare@suse.de>
Reviewed-by: Jerry Hoemann <jerry.hoemann@hpe.com>
-rw-r--r-- | dmioem.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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]); |