diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2018-10-04 13:05:00 +0200 |
---|---|---|
committer | Hans Verkuil <hans.verkuil@cisco.com> | 2018-10-05 17:41:56 +0200 |
commit | f33420ec9188596c9e1a9bf9645c103b625af4bd (patch) | |
tree | bc7bb82c12ba10d13625382422f6193c6f563cc0 /utils | |
parent | dc63ad119a7e080723759d7864595e2bd1d75175 (diff) |
cec-info.cpp: support new tx/rx_status flags.
Support the new status flags.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/common/cec-info.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/common/cec-info.cpp b/utils/common/cec-info.cpp index 00cd6c16..ea8c118a 100644 --- a/utils/common/cec-info.cpp +++ b/utils/common/cec-info.cpp @@ -313,6 +313,10 @@ static std::string tx_status2s(const struct cec_msg &msg) if (msg.tx_error_cnt) s += " (" + std::string(num) + ")"; } + if (stat & CEC_TX_STATUS_ABORTED) + s += ", Aborted"; + if (stat & CEC_TX_STATUS_TIMEOUT) + s += ", Timeout"; if (stat & CEC_TX_STATUS_MAX_RETRIES) s += ", Max Retries"; return s; @@ -330,6 +334,8 @@ static std::string rx_status2s(unsigned stat) s += ", Timeout"; if (stat & CEC_RX_STATUS_FEATURE_ABORT) s += ", Feature Abort"; + if (stat & CEC_RX_STATUS_ABORTED) + s += ", Aborted"; return s; } |