aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-23 13:37:28 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-23 13:37:28 +0100
commitb671c48c34b6f4f7d7e36966940e53968f45cf6c (patch)
tree7b5aacaaf8d7c1e47204f35a60a9da06f80ed891
parent56ebc216d0456719139cc1b898f79c37731f0562 (diff)
cec-ctl: show | instead of e or E
When a incorrect state transition is seen, log that as '|' instead of 'e' or 'E' which was not very clear. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-ctl/cec-ctl.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index 28cd2114..70768564 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -1090,10 +1090,10 @@ static bool wait_for_pwr_state(struct node &node, unsigned from, bool on)
printf("-");
break;
case CEC_OP_POWER_STATUS_TO_ON:
- printf("%c", on ? '/' : 'e');
+ printf("%c", on ? '/' : '|');
break;
case CEC_OP_POWER_STATUS_TO_STANDBY:
- printf("%c", on ? 'E' : '\\');
+ printf("%c", on ? '|' : '\\');
break;
default:
printf(" %d ", pwr);
@@ -1137,8 +1137,7 @@ static int init_power_cycle_test(struct node &node, unsigned repeats, unsigned m
"- Reported In Standby\n"
"/ Reported Transitioning to On\n"
"\\ Reported Transitioning to Standby\n"
- "e Reported Transitioning to On when 'to Standby' was expected\n"
- "E Reported Transitioning to Standby when 'to On' was expected\n\n");
+ "| Reported Transitioning to On when 'to Standby' was expected or vice versa\n\n");
struct cec_log_addrs laddrs = { };
doioctl(&node, CEC_ADAP_G_LOG_ADDRS, &laddrs);

Privacy Policy