aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-12-06 15:40:25 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2016-12-06 15:40:25 +0100
commit16994292e23a47ee35b9701fd393836cd40fece8 (patch)
tree747c38ea30467953a27a51c27997d36049a09d86
parent87981a75178ea2ce779c7f366599c4618ecd975f (diff)
cec-ctl: only show the reply if there was a reply
The test whether or not to show the reply was not correct. Only if there actually was a reply (RX_STATUS_OK or RX_STATUS_FEATURE_ABORT) should the reply be shown. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-ctl/cec-ctl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index 4f172644..64054ed3 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -1913,7 +1913,7 @@ int main(int argc, char **argv)
log_msg(&msg);
if (doioctl(&node, CEC_TRANSMIT, &msg))
continue;
- if ((msg.tx_status & CEC_TX_STATUS_OK) && msg.timeout) {
+ if (msg.rx_status & (CEC_RX_STATUS_OK | CEC_RX_STATUS_FEATURE_ABORT)) {
printf(" Received from %s (%d):\n ", la2s(cec_msg_initiator(&msg)),
cec_msg_initiator(&msg));
log_msg(&msg);

Privacy Policy