diff options
author | Erik Troan <ewt@redhat.com> | 1999-07-19 02:02:22 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-07-19 02:02:22 +0000 |
commit | 3f718154f60cb6ad73fa0f81b0181dd4e0fb72b8 (patch) | |
tree | 8908e931c9d8eedfa158c14e83f847f7410f9f83 /isys/pci | |
parent | c3541881dd27d39c3b1e7c00b8cab3ee4f317d3d (diff) | |
download | anaconda-3f718154f60cb6ad73fa0f81b0181dd4e0fb72b8.tar.gz anaconda-3f718154f60cb6ad73fa0f81b0181dd4e0fb72b8.tar.xz anaconda-3f718154f60cb6ad73fa0f81b0181dd4e0fb72b8.zip |
don't report module names w/ .o attached
Diffstat (limited to 'isys/pci')
-rw-r--r-- | isys/pci/pciprobe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/isys/pci/pciprobe.c b/isys/pci/pciprobe.c index 306e8c9cf..c554dd024 100644 --- a/isys/pci/pciprobe.c +++ b/isys/pci/pciprobe.c @@ -61,7 +61,7 @@ int probePciReadDrivers(const char * fn) { struct stat sb; char * buf; int numDrivers; - char * start; + char * start, * chptr; struct pciDevice * nextDevice; char module[5000]; char descrip[5000]; @@ -94,6 +94,9 @@ int probePciReadDrivers(const char * fn) { if (sscanf(start, "%x %x %s \"%[^\"]", &nextDevice->vendor, &nextDevice->device, module, descrip ) == 4) { numPciDevices++; + chptr = strchr(module, '.'); + if (chptr) *chptr = '\0'; + nextDevice->driver = strdup(module); nextDevice->desc = strdup(descrip); nextDevice++; |