From 4ed1a5af20fb761002a63611e25afbfc98a23373 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Wed, 3 Oct 2018 10:13:07 +0200 Subject: 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 --- utils/cec-ctl/cec-ctl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils') 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; -- cgit v1.2.1