aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-10-04 13:05:30 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-10-05 17:41:56 +0200
commitb5ec216a33438afb6b35189379de24e13113fbb8 (patch)
tree8a4e9d0e4868515545626eae287879c49273a8b9 /utils/cec-compliance
parentf33420ec9188596c9e1a9bf9645c103b625af4bd (diff)
cec-compliance: check for new status flags
Also warn when the CEC_TX_STATUS_TIMEOUT flag was set: this shouldn't happen. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-compliance.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index 990c38bf..0d3a373b 100644
--- a/utils/cec-compliance/cec-compliance.cpp
+++ b/utils/cec-compliance/cec-compliance.cpp
@@ -658,10 +658,11 @@ int cec_named_ioctl(struct node *node, const char *name,
printf("\n\t\t\tRx Timestamp: %s Approximate response time: %u ms",
ts2s(msg->rx_ts).c_str(),
response_time_ms(msg));
- if (msg->tx_status & (CEC_TX_STATUS_ARB_LOST | CEC_TX_STATUS_NACK |
- CEC_TX_STATUS_LOW_DRIVE | CEC_TX_STATUS_ERROR))
+ if (msg->tx_status & ~CEC_TX_STATUS_OK)
printf("\n\t\t\tStatus: %s", status2s(*msg).c_str());
printf("\n");
+ if (msg->tx_status & CEC_TX_STATUS_TIMEOUT)
+ warn("CEC_TX_STATUS_TIMEOUT was set, should not happen.\n");
}
if (!retval && request == CEC_RECEIVE && show_info)

Privacy Policy