path: root/utils/cec-compliance
diff options
authorHans Verkuil <hansverk@cisco.com>2018-06-28 10:34:12 +0200
committerHans Verkuil <hansverk@cisco.com>2018-06-28 10:34:12 +0200
commit1feffb941362469b174042eb402fbf34bdfb37b0 (patch)
tree622f59e3248da0280d05400276516b13e32e5e5d /utils/cec-compliance
parent5c197a3bbe7358670765d09f67ae2f05e89a61d1 (diff)
cec utils: -w implies -v
Enabling wall clock time only makes sense for verbose reporting. So automatically enable verbose reporting for the -w option so that you don't have to do -w -v every time. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Diffstat (limited to 'utils/cec-compliance')
2 files changed, 5 insertions, 4 deletions
diff --git a/utils/cec-compliance/cec-compliance.1.in b/utils/cec-compliance/cec-compliance.1.in
index 0fc6f390..4138ad5d 100644
--- a/utils/cec-compliance/cec-compliance.1.in
+++ b/utils/cec-compliance/cec-compliance.1.in
@@ -81,15 +81,15 @@ with a possible inconsistent state.
\fB\-v\fR, \fB\-\-verbose\fR
Turn on verbose reporting.
+\fB\-w\fR, \fB\-\-wall\-clock\fR
+Show timestamps as wall-clock time. This also turns on verbose reporting.
\fB\-T\fR, \fB\-\-trace\fR
Trace all called ioctls. Useful for debugging.
\fB\-h\fR, \fB\-\-help\fR
Prints the help message.
-\fB\-w\fR, \fB\-\-wall\-clock\fR
-Show timestamps as wall-clock time.
\fB\-W\fR, \fB\-\-exit\-on\-warn\fR
Exit this application when the first warning occurs instead of continuing.
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index b7dcbc3a..2c44a571 100644
--- a/utils/cec-compliance/cec-compliance.cpp
+++ b/utils/cec-compliance/cec-compliance.cpp
@@ -209,7 +209,7 @@ static void usage(void)
" -s, --skip-info Skip Driver Info output\n"
" -T, --trace Trace all called ioctls\n"
" -v, --verbose Turn on verbose reporting\n"
- " -w, --wall-clock Show timestamps as wall-clock time\n"
+ " -w, --wall-clock Show timestamps as wall-clock time (implies -v)\n"
" -W, --exit-on-warn Exit on the first warning.\n"
@@ -1157,6 +1157,7 @@ int main(int argc, char **argv)
test_remote = true;
+ case OptWallClock:
case OptVerbose:
show_info = true;

Privacy Policy