aboutsummaryrefslogtreecommitdiffstats
path: root/edid-decode.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-31 11:28:24 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-31 11:28:24 +0200
commit52c3fde4c244e995da46420e54b583e97da2cc40 (patch)
tree97c9f5ef5ac8a9d06c6efb5ff2639e54e7373eb6 /edid-decode.cpp
parent613b79d8f68511ba76fc59812d3208fd0c78b780 (diff)
edid-decode: log checksum with two digits
Write 'Checksum: 0x01' instead of 'Checksum: 0x1'. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'edid-decode.cpp')
-rw-r--r--edid-decode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/edid-decode.cpp b/edid-decode.cpp
index 8a1e27a..bcd1090 100644
--- a/edid-decode.cpp
+++ b/edid-decode.cpp
@@ -153,7 +153,7 @@ void do_checksum(const char *prefix, const unsigned char *x, size_t len)
unsigned char sum = 0;
unsigned i;
- printf("%sChecksum: 0x%hhx", prefix, check);
+ printf("%sChecksum: 0x%02hhx", prefix, check);
for (i = 0; i < len-1; i++)
sum += x[i];

Privacy Policy