aboutsummaryrefslogtreecommitdiffstats
path: root/parse-base-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-26 14:24:19 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-26 14:24:19 +0200
commit240ec6ad6a3fe1276d246383f8678bae8ce65554 (patch)
tree32ed3d0d6e8a8d87086b510cc0968fa0aaa7b783 /parse-base-block.cpp
parent56dd103a0c20724ee956950f5bcb8cc1c8667af9 (diff)
edid-decode: improve fail message
Make it clear that bytes 12-17 must all be 0x20. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-base-block.cpp')
-rw-r--r--parse-base-block.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-base-block.cpp b/parse-base-block.cpp
index 90d240b..3026093 100644
--- a/parse-base-block.cpp
+++ b/parse-base-block.cpp
@@ -1099,7 +1099,7 @@ void edid_state::detailed_display_range_limits(const unsigned char *x)
fail("Byte 11 is 0x%02x instead of 0x0a.\n", x[11]);
for (unsigned i = 12; i <= 17; i++) {
if (x[i] != 0x20) {
- fail("Byte %u is 0x%02x instead of 0x20.\n", i, x[i]);
+ fail("Bytes 12-17 must be 0x20.\n");
break;
}
}

Privacy Policy