summaryrefslogtreecommitdiffstats
path: root/lspcidrake.c
diff options
context:
space:
mode:
Diffstat (limited to 'lspcidrake.c')
-rw-r--r--lspcidrake.c3
1 files changed, 3 insertions, 0 deletions
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++;
}