aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-23 12:08:36 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-23 12:08:36 +0100
commit56ebc216d0456719139cc1b898f79c37731f0562 (patch)
treeb044b59b64b0e4a970a8ec953683e30edbee5371
parent5f315de31a7e3d3b6595f7ec30f3f3af19b17d78 (diff)
cec-ctl: show timeouts vs Nacks
In the powercycle stress test output it was not clear if a transmit failed (was nacked) or if there was no reply (timeout). It now shows timeouts with 'T'. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-ctl/cec-ctl.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index fdaa3339..28cd2114 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -1073,7 +1073,10 @@ static bool wait_for_pwr_state(struct node &node, unsigned from, bool on)
return false;
}
if (!(msg.rx_status & CEC_RX_STATUS_OK)) {
- printf("N");
+ if (msg.tx_status & CEC_TX_STATUS_OK)
+ printf("T");
+ else
+ printf("N");
fflush(stdout);
return false;
}
@@ -1127,7 +1130,8 @@ static int init_power_cycle_test(struct node &node, unsigned repeats, unsigned m
printf("Legend:\n\n"
"X No LA claimed (HPD is likely pulled low)\n"
- "N No Report Power Status received\n"
+ "N Give Device Power Status was Nacked\n"
+ "T Time out waiting for Report Power Status reply\n"
"A Feature Abort of Give Device Power Status \n"
"+ Reported On\n"
"- Reported In Standby\n"

Privacy Policy