aboutsummaryrefslogtreecommitdiffstats
path: root/parse-di-ext-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-12-01 13:50:33 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-12-01 13:50:33 +0100
commit6abd85db0a1a2d67f52a44727df4cdcd1f8b8578 (patch)
tree7b973b73ecbd22def745f6b86b83a1c23fe0a5d6 /parse-di-ext-block.cpp
parent0e602dc90d39188b17cf00e34d514119d59aa261 (diff)
edid-decode: improve error logging
Distinguish between the block name and the data block name. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-di-ext-block.cpp')
-rw-r--r--parse-di-ext-block.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/parse-di-ext-block.cpp b/parse-di-ext-block.cpp
index aaefa96..4b8efad 100644
--- a/parse-di-ext-block.cpp
+++ b/parse-di-ext-block.cpp
@@ -9,8 +9,8 @@
void edid_state::parse_digital_interface(const unsigned char *x)
{
- cur_block = "Digital Interface";
- printf("%s\n", cur_block.c_str());
+ data_block = "Digital Interface";
+ printf("%s\n", data_block.c_str());
printf(" Supported Digital Interface: ");
unsigned short v = x[2];
@@ -129,8 +129,8 @@ void edid_state::parse_digital_interface(const unsigned char *x)
void edid_state::parse_display_device(const unsigned char *x)
{
- cur_block = "Display Device";
- printf("%s\n", cur_block.c_str());
+ data_block = "Display Device";
+ printf("%s\n", data_block.c_str());
printf(" Sub-Pixel Layout: ");
unsigned char v = x[0x0e];
@@ -205,8 +205,8 @@ void edid_state::parse_display_device(const unsigned char *x)
void edid_state::parse_display_caps(const unsigned char *x)
{
- cur_block = "Display Capabities & Feature Support Set";
- printf("%s\n", cur_block.c_str());
+ data_block = "Display Capabities & Feature Support Set";
+ printf("%s\n", data_block.c_str());
unsigned short v = x[0x14];
@@ -431,8 +431,8 @@ void edid_state::parse_display_caps(const unsigned char *x)
void edid_state::parse_display_xfer(const unsigned char *x)
{
- cur_block = "Display Transfer Characteristics - Gamma";
- printf("%s\n", cur_block.c_str());
+ data_block = "Display Transfer Characteristics - Gamma";
+ printf("%s\n", data_block.c_str());
unsigned char v = x[0x51];
unsigned num_entries = v & 0x3f;
@@ -481,7 +481,7 @@ void edid_state::parse_display_xfer(const unsigned char *x)
void edid_state::parse_di_ext_block(const unsigned char *x)
{
- printf("%s Version %u\n", cur_block.c_str(), x[1]);
+ printf("%s Version %u\n", block.c_str(), x[1]);
if (!x[1])
fail("Invalid version 0\n");

Privacy Policy