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-compliance: replace warn by announce if unresponsive Author: Hans Verkuil <hverkuil-ci...@xs4all.nl> Date: Thu Jun 16 13:03:31 2022 +0200 If the remote device was unresponsive during a power state transition, then report that with announce() instead of warn(): it is very common that this happens, so just report it without incrementing the warnings count. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl> utils/cec-compliance/cec-test-power.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=b9054747fdf0ba6c98085d4e4b96f49847787a6f diff --git a/utils/cec-compliance/cec-test-power.cpp b/utils/cec-compliance/cec-test-power.cpp index c811af59c6dd..ed1e1fbc26b4 100644 --- a/utils/cec-compliance/cec-test-power.cpp +++ b/utils/cec-compliance/cec-test-power.cpp @@ -348,8 +348,8 @@ static int standby_resume_standby(struct node *node, unsigned me, unsigned la, b node->remote[la].in_standby = true; if (unresponsive_cnt > 0) - warn("The device went correctly into standby, but was unresponsive %d times during the transition.\n", - unresponsive_cnt); + announce("The device went correctly into standby, but was unresponsive %d time%s during the transition.\n", + unresponsive_cnt, unresponsive_cnt == 1 ? "" : "s"); return 0; } @@ -396,8 +396,8 @@ static int standby_resume_standby_toggle(struct node *node, unsigned me, unsigne fail_on_test(interactive && !question("Is the device still in standby?")); node->remote[la].in_standby = true; if (unresponsive_cnt > 0) - warn("The device went correctly into standby, but was unresponsive %d times during the transition.\n", - unresponsive_cnt); + announce("The device went correctly into standby, but was unresponsive %d time%s during the transition.\n", + unresponsive_cnt, unresponsive_cnt == 1 ? "" : "s"); return 0; } @@ -432,8 +432,8 @@ static int standby_resume_active_source_nowake(struct node *node, unsigned me, u node->remote[la].in_standby = true; if (unresponsive_cnt > 0) - warn("The device stayed correctly in standby, but was unresponsive %d times.\n", - unresponsive_cnt); + warn("The device stayed correctly in standby, but was unresponsive %d time%s.\n", + unresponsive_cnt, unresponsive_cnt == 1 ? "" : "s"); return 0; } @@ -511,8 +511,8 @@ int standby_resume_wakeup(struct node *node, unsigned me, unsigned la, bool inte fail_on_test(interactive && !question("Is the device in On state?")); if (unresponsive_cnt > 0) - warn("The device went correctly out of standby, but was unresponsive %d times during the transition.\n", - unresponsive_cnt); + announce("The device went correctly out of standby, but was unresponsive %d time%s during the transition.\n", + unresponsive_cnt, unresponsive_cnt == 1 ? "" : "s"); return 0; } @@ -557,8 +557,8 @@ static int standby_resume_wakeup_view_on(struct node *node, unsigned me, unsigne fail_on_test(!transmit_timeout(node, &msg)); if (unresponsive_cnt > 0) - warn("The device went correctly out of standby, but was unresponsive %d times during the transition.\n", - unresponsive_cnt); + announce("The device went correctly out of standby, but was unresponsive %d time%s during the transition.\n", + unresponsive_cnt, unresponsive_cnt == 1 ? "" : "s"); return 0; } _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits