aboutsummaryrefslogtreecommitdiffstats
path: root/parse-displayid-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-03-12 07:53:13 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-03-12 07:53:13 +0100
commit0edd198d8b608b396f7716d56f21e8d6342f4481 (patch)
tree3a2484483907b1a3648914b813b2dfa4a8e03d0b /parse-displayid-block.cpp
parent016c260859d48258a5701d2964fe01a167b749fc (diff)
edid-decode: introduce containerid2s()
Format the container IDs consistently. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-displayid-block.cpp')
-rw-r--r--parse-displayid-block.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/parse-displayid-block.cpp b/parse-displayid-block.cpp
index b11b0c5..5bd9734 100644
--- a/parse-displayid-block.cpp
+++ b/parse-displayid-block.cpp
@@ -1360,12 +1360,7 @@ void edid_state::parse_displayid_ContainerID(const unsigned char *x)
if (check_displayid_datablock_length(x, 16, 16)) {
x += 3;
- printf(" %02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n",
- x[0], x[1], x[2], x[3],
- x[4], x[5],
- x[6], x[7],
- x[8], x[9],
- x[10], x[11], x[12], x[13], x[14], x[15]);
+ printf(" Container ID: %s\n", containerid2s(x).c_str());
}
}

Privacy Policy