diff options
author | Erik Troan <ewt@redhat.com> | 1999-05-25 01:51:22 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-05-25 01:51:22 +0000 |
commit | d4d70578ff4193ac59c803a1c1b4ccf027e95a6b (patch) | |
tree | 10213f06be93016f8117cbdcb5a5a68393c2d492 /isys/pci | |
parent | f9c6e0de2c1ac024c7950e60652efdd9516c28d7 (diff) | |
download | anaconda-d4d70578ff4193ac59c803a1c1b4ccf027e95a6b.tar.gz anaconda-d4d70578ff4193ac59c803a1c1b4ccf027e95a6b.tar.xz anaconda-d4d70578ff4193ac59c803a1c1b4ccf027e95a6b.zip |
*** empty log message ***
Diffstat (limited to 'isys/pci')
-rw-r--r-- | isys/pci/testprobe.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/isys/pci/testprobe.c b/isys/pci/testprobe.c new file mode 100644 index 000000000..7b4e76088 --- /dev/null +++ b/isys/pci/testprobe.c @@ -0,0 +1,26 @@ +#include <errno.h> +#include <stdio.h> +#include <string.h> + +#include "pciprobe.h" + +int main(void) { + char ** matches; + + if (probePciReadDrivers("pcitable")) { + perror("error reading pci table"); + return 1; + } + + matches = probePciDriverList(); + if (!matches) { + printf("no pci drivers are needed\n"); + } else { + while (*matches) { + printf("%s\n", *matches); + matches++; + } + } + + return 0; +} |