aboutsummaryrefslogtreecommitdiffstats
path: root/parse-displayid-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-09-27 14:41:50 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-09-27 14:41:50 +0200
commitb7049c80880f6fcd1552ce9999b468d627a0a8b6 (patch)
tree3b4a25b3f57c7bebc6c0eedcf05b961890a6ad1a /parse-displayid-block.cpp
parent77c289146ec87087cb3fed1df9034ea6d92b269a (diff)
edid-decode: report length for unknown data blocks
An earlier patch dropped reporting the length of an unknown data block. Add this back since that's useful to know. Also include it for DisplayID. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-displayid-block.cpp')
-rw-r--r--parse-displayid-block.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-displayid-block.cpp b/parse-displayid-block.cpp
index 6a57346..e512394 100644
--- a/parse-displayid-block.cpp
+++ b/parse-displayid-block.cpp
@@ -1711,7 +1711,7 @@ unsigned edid_state::displayid_block(const unsigned version, const unsigned char
// 0x80 RESERVED
case 0x81: data_block = "CTA-861 DisplayID Data Block"; break;
// 0x82 .. 0xff RESERVED
- default: data_block = "Unknown DisplayID Data Block (" + utohex(tag) + ")"; break;
+ default: data_block = "Unknown DisplayID Data Block (" + utohex(tag) + ", length " + std::to_string(length) + ")"; break;
}
if (length < 3) {

Privacy Policy