summaryrefslogtreecommitdiffstats
path: root/pcitool
diff options
context:
space:
mode:
authornicolas.zilio@hotmail.fr <>2015-09-11 19:40:33 +0200
committernicolas.zilio@hotmail.fr <>2015-09-11 19:40:33 +0200
commit60c6bf9f6916b6ae2c05a499675ff54480256ece (patch)
tree065426f61514f771fdf2bbaa0dbced13b7ff87a9 /pcitool
parent0d460b28c769fd2a1d2efb85f11edd4189fb5713 (diff)
downloadpcitool-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.c5
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");