diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-08-19 21:28:43 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-08-19 21:28:43 +0000 |
commit | e7459fe28ce216d744ffe305a01b78ab88a716a2 (patch) | |
tree | 8b3db97e711cea8b07d41e257163fc476a4af06a /lspcidrake.c | |
parent | a9d8b25bd82f7bcf3de4e4c10c97cfb1eab2becc (diff) | |
download | ldetect-e7459fe28ce216d744ffe305a01b78ab88a716a2.tar ldetect-e7459fe28ce216d744ffe305a01b78ab88a716a2.tar.gz ldetect-e7459fe28ce216d744ffe305a01b78ab88a716a2.tar.bz2 ldetect-e7459fe28ce216d744ffe305a01b78ab88a716a2.tar.xz ldetect-e7459fe28ce216d744ffe305a01b78ab88a716a2.zip |
do full-probe by default; remove support for no full-probe
Diffstat (limited to 'lspcidrake.c')
-rw-r--r-- | lspcidrake.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lspcidrake.c b/lspcidrake.c index 28bf2f6..e2620c2 100644 --- a/lspcidrake.c +++ b/lspcidrake.c @@ -32,11 +32,10 @@ static void printit(struct pciusb_entries entries, const char *(find_class)(unsi int main(int argc, char **argv) { char ** ptr = argv; - int full_probe = 0; while (ptr && *ptr) { if (!strcmp(*ptr, "-h") || !strcmp(*ptr, "--help")) { - printf("usage: lspcidrake [-v|-f|-u]\n" + printf("usage: lspcidrake [-v|-u]\n" "-f : full probe [aka look for pci subids & class]\n" "-p <file>: pci devices source [/proc/bus/pci/devices by default]\n" "-u <file>: usb devices source [/proc/bus/usb/devices by default]\n" @@ -44,12 +43,8 @@ int main(int argc, char **argv) { ); return 0; } - if (!strcmp(*ptr, "-v")) { + if (!strcmp(*ptr, "-v")) verboze = 1; - full_probe = 1; - } - if (!strcmp(*ptr, "-f")) - full_probe = 1; if (!strcmp(*ptr, "-u")) { proc_usb_path = *++ptr; continue; @@ -59,7 +54,7 @@ int main(int argc, char **argv) { ptr++; } - printit(pci_probe(full_probe), pci_class2text); + printit(pci_probe(), pci_class2text); printit(usb_probe(), usb_class2text); return 0; } |