aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-10-04 13:05:00 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-10-05 17:41:56 +0200
commitf33420ec9188596c9e1a9bf9645c103b625af4bd (patch)
treebc7bb82c12ba10d13625382422f6193c6f563cc0 /utils
parentdc63ad119a7e080723759d7864595e2bd1d75175 (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.cpp6
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;
}

Privacy Policy