diff options
Diffstat (limited to 'pcitool')
-rw-r--r-- | pcitool/cli.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c index c3663d2..7014190 100644 --- a/pcitool/cli.c +++ b/pcitool/cli.c @@ -2720,6 +2720,11 @@ int main(int argc, char **argv) { mode = MODE_READ; if (optarg) addr = optarg; else if ((optind < argc)&&(argv[optind][0] != '-')) addr = argv[optind++]; + + /* char* s; + if(!(s=strchr(addr,'/'))){ + mode=MODE_READ_VIEW;*/ + break; case OPT_WRITE: if (mode != MODE_INVALID) Usage(argc, argv, "Multiple operations are not supported"); |