From 2e14e5ad5bdf326a6b8b6e3064ca04e07fbd086c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 16 Jul 2002 15:07:01 +0000 Subject: - pci.c: add the ability to read pci devices list from a file instead of /proc/bus/pci/devices - spec: prepare for next release - add ChangeLog --- lspcidrake.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lspcidrake.c') diff --git a/lspcidrake.c b/lspcidrake.c index ace91e4..f98bed3 100644 --- a/lspcidrake.c +++ b/lspcidrake.c @@ -38,6 +38,7 @@ int main(int argc, char **argv) { if (!strcmp(*ptr, "-h") || !strcmp(*ptr, "--help")) { printf("usage: lspcidrake [-v|-f|-u]\n" "-f : full probe\n" + "-p : pci devices source [/proc/bus/pci/devices by default\n" "-u : usb devices source [/proc/usb/devices by default\n" "-v : verbose mode [print ids and sub-ids], implies full probe\n" ); @@ -51,6 +52,8 @@ int main(int argc, char **argv) { full_probe = 1; if (!strcmp(*ptr, "-u")) proc_usb_path = *++ptr; + if (!strcmp(*ptr, "-p")) + proc_pci_path = *++ptr; ptr++; } -- cgit v1.2.1