From e7459fe28ce216d744ffe305a01b78ab88a716a2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 19 Aug 2003 21:28:43 +0000 Subject: do full-probe by default; remove support for no full-probe --- lspcidrake.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lspcidrake.c') 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 : pci devices source [/proc/bus/pci/devices by default]\n" "-u : 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; } -- cgit v1.2.1