summaryrefslogtreecommitdiffstats
path: root/perl-install/c
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-21 18:40:13 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-21 18:40:13 +0000
commit54840a56fcf8dbc066dff91142d943c0b4d4eddf (patch)
treeac20a709d9ecf613ea92c616aeded6925d2ccc46 /perl-install/c
parenta46b2c4c87911f151d53e9ecb1cd145da3f359cf (diff)
downloaddrakx-backup-do-not-use-54840a56fcf8dbc066dff91142d943c0b4d4eddf.tar
drakx-backup-do-not-use-54840a56fcf8dbc066dff91142d943c0b4d4eddf.tar.gz
drakx-backup-do-not-use-54840a56fcf8dbc066dff91142d943c0b4d4eddf.tar.bz2
drakx-backup-do-not-use-54840a56fcf8dbc066dff91142d943c0b4d4eddf.tar.xz
drakx-backup-do-not-use-54840a56fcf8dbc066dff91142d943c0b4d4eddf.zip
added support for pci id extraction.
Diffstat (limited to 'perl-install/c')
-rw-r--r--perl-install/c/stuff.xs.pm5
1 files changed, 3 insertions, 2 deletions
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);