diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-05-06 11:43:02 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-05-06 11:43:02 +0200 |
commit | e949a98f6bb1b0a62d794c1e08e5201c6c9bc849 (patch) | |
tree | 5692977f555e41b092a304e346e83218fa26386e | |
parent | 4631ee0a158524b90608326cd86ded4a02031e93 (diff) | |
download | v4l-utils-e949a98f6bb1b0a62d794c1e08e5201c6c9bc849.tar.gz |
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.cpp | 4 |
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) |