diff options
author | nicolas.zilio@hotmail.fr <> | 2015-09-11 19:40:33 +0200 |
---|---|---|
committer | nicolas.zilio@hotmail.fr <> | 2015-09-11 19:40:33 +0200 |
commit | 60c6bf9f6916b6ae2c05a499675ff54480256ece (patch) | |
tree | 065426f61514f771fdf2bbaa0dbced13b7ff87a9 /pcitool | |
parent | 0d460b28c769fd2a1d2efb85f11edd4189fb5713 (diff) | |
download | pcitool-60c6bf9f6916b6ae2c05a499675ff54480256ece.tar.gz pcitool-60c6bf9f6916b6ae2c05a499675ff54480256ece.tar.bz2 pcitool-60c6bf9f6916b6ae2c05a499675ff54480256ece.tar.xz pcitool-60c6bf9f6916b6ae2c05a499675ff54480256ece.zip |
more towards views
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"); |