aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2018-10-17 09:03:54 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2018-10-17 09:03:54 +0200
commite889b0d56757b9a74eb8c4c8cc2ebd5b18e228b2 (patch)
treeae892570a0d6fbfffc68cbbdb89d283c503f6eaf /utils/cec-compliance
parente84c8bdb0af5b79efa26aabc7b17d1ddead56c70 (diff)
cec-compliance: show human readable Vendor ID
The Vendor ID was only shown as a hex value instead of the actual vendor name. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-compliance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index 89f731e3..0bd61ed6 100644
--- a/utils/cec-compliance/cec-compliance.cpp
+++ b/utils/cec-compliance/cec-compliance.cpp
@@ -963,10 +963,10 @@ static void topology_probe_device(struct node *node, unsigned i, unsigned la)
printf("%s\n", status2s(msg).c_str());
node->remote[i].vendor_id = CEC_VENDOR_ID_NONE;
} else {
- printf("0x%02x%02x%02x\n",
- msg.msg[2], msg.msg[3], msg.msg[4]);
node->remote[i].vendor_id = (msg.msg[2] << 16) |
(msg.msg[3] << 8) | msg.msg[4];
+ printf("0x%06x %s\n", node->remote[i].vendor_id,
+ vendor2s(node->remote[i].vendor_id));
}
cec_msg_init(&msg, la, i);

Privacy Policy