aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-06 11:43:02 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-06 11:43:02 +0200
commite949a98f6bb1b0a62d794c1e08e5201c6c9bc849 (patch)
tree5692977f555e41b092a304e346e83218fa26386e
parent4631ee0a158524b90608326cd86ded4a02031e93 (diff)
utils/libcecutil/cec-log.cpp: report 6 digits of Vendor ID
The Vendor ID is just 24 bits, so report only 6 digits (%06x) instead of 8 (%08x). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/libcecutil/cec-log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/libcecutil/cec-log.cpp b/utils/libcecutil/cec-log.cpp
index e2178473..3f263860 100644
--- a/utils/libcecutil/cec-log.cpp
+++ b/utils/libcecutil/cec-log.cpp
@@ -232,9 +232,9 @@ static void log_vendor_id(const char *arg_name, __u32 vendor_id)
const char *vendor = cec_vendor2s(vendor_id);
if (vendor)
- printf("\t%s: 0x%08x, %s\n", arg_name, vendor_id, vendor);
+ printf("\t%s: 0x%06x, %s\n", arg_name, vendor_id, vendor);
else
- printf("\t%s: 0x%08x, %u\n", arg_name, vendor_id, vendor_id);
+ printf("\t%s: 0x%06x, %u\n", arg_name, vendor_id, vendor_id);
}
static void log_descriptors(const char *arg_name, unsigned num, const __u32 *descriptors)

Privacy Policy