This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: cec-ctl: show non-OK status in verbose monitor mode Author: Hans Verkuil <hverk...@xs4all.nl> Date: Wed Oct 10 12:57:18 2018 +0200 When monitoring messages and if -v was passed, then show the message status unless everything was OK. Signed-off-by: Hans Verkuil <hverk...@xs4all.nl> utils/cec-ctl/cec-ctl.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=dcac09d7dc861e9bd7e2e4346479b32d021fe925 diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp index 126cfa08340b..d2876bccbb65 100644 --- a/utils/cec-ctl/cec-ctl.cpp +++ b/utils/cec-ctl/cec-ctl.cpp @@ -1307,12 +1307,18 @@ static void show_msg(const cec_msg &msg) log_msg(&msg); if (options[OptShowRaw]) log_raw_msg(&msg); + std::string status; + if ((msg.tx_status & ~CEC_TX_STATUS_OK) || + (msg.rx_status & ~CEC_RX_STATUS_OK)) + status = status2s(msg); if (verbose && transmitted) - printf("\tSequence: %u Tx Timestamp: %s\n", - msg.sequence, ts2s(msg.tx_ts).c_str()); + printf("\tSequence: %u Tx Timestamp: %s %s\n", + msg.sequence, ts2s(msg.tx_ts).c_str(), + status.c_str()); else if (verbose && !transmitted) - printf("\tSequence: %u Rx Timestamp: %s\n", - msg.sequence, ts2s(msg.rx_ts).c_str()); + printf("\tSequence: %u Rx Timestamp: %s %s\n", + msg.sequence, ts2s(msg.rx_ts).c_str(), + status.c_str()); } static void wait_for_msgs(struct node &node, __u32 monitor_time) _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits