From 54840a56fcf8dbc066dff91142d943c0b4d4eddf Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 21 Mar 2001 18:40:13 +0000 Subject: added support for pci id extraction. --- perl-install/c/stuff.xs.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm index 41d0b721a..12d4c28a4 100644 --- a/perl-install/c/stuff.xs.pm +++ b/perl-install/c/stuff.xs.pm @@ -230,8 +230,9 @@ pci_probe(probe_type) EXTEND(SP, entries.nb); for (i = 0; i < entries.nb; i++) { struct pciusb_entry e = entries.entries[i]; - snprintf(buf, sizeof(buf), "%04x\t%04x\t%04x\t%04x\t%s\t%s\t%s", - e.vendor, e.device, e.subvendor, e.subdevice, pci_class2text(e.class), e.module ? e.module : "unknown", e.text); + snprintf(buf, sizeof(buf), "%04x\t%04x\t%04x\t%04x\t%d\t%d\t%d\t%s\t%s\t%s", + e.vendor, e.device, e.subvendor, e.subdevice, e.pci_bus, e.pci_device, e.pci_function, + pci_class2text(e.class), e.module ? e.module : "unknown", e.text); PUSHs(sv_2mortal(newSVpv(buf, 0))); } pciusb_free(entries); -- cgit v1.2.1