diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-02-12 13:45:43 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-02-12 13:45:43 +0100 |
commit | 423cfc63206e20ca45c8cf4e968700688363a811 (patch) | |
tree | 895308c7110f7151a5f448a759c40ccc20094fcb /parse-ls-ext-block.cpp | |
parent | 8f46a81ba8c7fb8d62e8f2b46735a956b0df8974 (diff) |
edid-decode: major cleanup
This makes the layout of the parsed EDID data consistent.
New sections start with 'Section Name:' and the following lines
are one more indent to the right.
Flags are shown as simple strings (no ':').
Values are shown as 'Value: 1234'.
Also DMTs now show the DMT ID instead of just 'DMT'.
Various new tests were also added.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-ls-ext-block.cpp')
-rw-r--r-- | parse-ls-ext-block.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse-ls-ext-block.cpp b/parse-ls-ext-block.cpp index 4898e6b..e997744 100644 --- a/parse-ls-ext-block.cpp +++ b/parse-ls-ext-block.cpp @@ -53,8 +53,8 @@ void edid_state::parse_ls_ext_block(const unsigned char *x) { const unsigned char *orig = x; - printf("%s Version %u.%u Unicode Version %u.%u.%u\n", - block.c_str(), x[1], x[2], (x[3] >> 4), x[3] & 0x0f, x[4]); + printf(" Version: %u.%u\n Unicode Version: %u.%u.%u\n", + x[1], x[2], (x[3] >> 4), x[3] & 0x0f, x[4]); x += 5; while (x[0] && x + x[0] < orig + 127) { |