aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance/cec-compliance.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-02-10 10:38:15 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-02-10 10:38:15 +0100
commit48fe12520bb61fb5347409f0e5def5c5a552486f (patch)
treef22c9ccaf8d7ae5ee3094ca35f0088a55f854cef /utils/cec-compliance/cec-compliance.h
parent67962f1277b483060a16b80cbe79fac56d4e2cc6 (diff)
cec-compliance: clarify obscure error message
The --expect option checks if the test result matches what is expected. If it isn't, then this message is shown: Dynamic Auto Lipsync feature: Request Current Latency: FAIL (Expected 0, got 3) That's not very clear, so this is now changed to: Dynamic Auto Lipsync feature: Request Current Latency: FAIL (Expected 'OK', got 'OK (Not Supported)') Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-compliance/cec-compliance.h')
-rw-r--r--utils/cec-compliance/cec-compliance.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/cec-compliance/cec-compliance.h b/utils/cec-compliance/cec-compliance.h
index 644a05a5..39a5402f 100644
--- a/utils/cec-compliance/cec-compliance.h
+++ b/utils/cec-compliance/cec-compliance.h
@@ -178,6 +178,7 @@ struct remote_subtest {
bool for_cec20;
};
+#define OK 0
#define FAIL 1
#define OK_PRESUMED 2
#define OK_NOT_SUPPORTED 3
@@ -396,6 +397,7 @@ static inline unsigned get_ts_ms()
return timespec.tv_sec * 1000ull + timespec.tv_nsec / 1000000;
}
+const char *result_name(int res, bool show_colors);
const char *ok(int res);
const char *power_status2s(__u8 power_status);
std::string short_audio_desc2s(const struct short_audio_desc &sad);

Privacy Policy