aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-14 12:35:59 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-14 12:37:36 +0100
commit478ab1000f0b8e6245ac74fab9ff265dd77c4293 (patch)
treec4b589b2a75687e44a246cb3a07bf2f4ac78f9b4 /utils/cec-compliance
parent498656f309686f3e386570de29d7b21af83cbf7a (diff)
cec-compliance: show driver and device name
Show driver and device name in the 'Compliance test for' line and the Total line. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-compliance.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index 0bd61ed6..e8468800 100644
--- a/utils/cec-compliance/cec-compliance.cpp
+++ b/utils/cec-compliance/cec-compliance.cpp
@@ -1308,7 +1308,7 @@ int main(int argc, char **argv)
exit(-1);
if (!options[OptSkipInfo]) {
- printf("\nCompliance test for device %s:\n\n", device);
+ printf("\nCompliance test for %s device %s:\n\n", caps.driver, device);
printf(" The test results mean the following:\n"
" OK Supported correctly by the device.\n"
" OK (Not Supported) Not supported and not mandatory for the device.\n"
@@ -1362,7 +1362,8 @@ int main(int argc, char **argv)
close(fd);
- printf("Total: %d, Succeeded: %d, Failed: %d, Warnings: %d\n",
+ printf("Total for %s device %s: %d, Succeeded: %d, Failed: %d, Warnings: %d\n",
+ caps.driver, device,
tests_total, tests_ok, tests_total - tests_ok, warnings);
exit(app_result);
}

Privacy Policy