aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHans Verkuil <hansverk@cisco.com>2018-10-03 10:13:07 +0200
committerHans Verkuil <hansverk@cisco.com>2018-10-03 10:13:07 +0200
commit4ed1a5af20fb761002a63611e25afbfc98a23373 (patch)
tree0acea823cc5da74bf0cc65f6e7041f2ac1557ffc /utils
parenta42194971cc1ae0b55dd9c45475cda3e969dfcfb (diff)
cec-ctl: don't let -w enable verbose when combined with pin monitoring/analysis
If verbose is turned on for pin monitoring/analysis, then you will see all pin transitions. But you may just want to see the wallclock time in that case and not all the pin transitions. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/cec-ctl/cec-ctl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index a3b537b4..07ab5a72 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -1811,7 +1811,6 @@ int main(int argc, char **argv)
device = newdev;
}
break;
- case OptWallClock:
case OptVerbose:
verbose = true;
break;
@@ -2161,6 +2160,9 @@ int main(int argc, char **argv)
return 0;
}
+ if (options[OptWallClock] && !options[OptMonitorPin])
+ verbose = true;
+
if (store_pin && !strcmp(store_pin, "-"))
options[OptSkipInfo] = 1;

Privacy Policy