summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-31 13:41:00 +0200
committerAdam Jackson <ajax@redhat.com>2017-09-07 12:13:30 -0400
commit876ff5e51ac48abe5a4e290fda51cd6e6b2568dc (patch)
treef1f5e8aa5cb5cc0f2cf9119e9cd5aea0f23a4464
parentf8397bb24d920ca23e80df25f0f3052998295c3f (diff)
edid-decode: fix CVT version
Parenthesis are needed to correctly report the CVT version. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--edid-decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/edid-decode.c b/edid-decode.c
index 251b835..4105700 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -423,7 +423,7 @@ detailed_block(unsigned char *x, int in_extension)
if (is_cvt) {
int max_h_pixels = 0;
- printf("CVT version %d.%d\n", x[11] & 0xf0 >> 4, x[11] & 0x0f);
+ printf("CVT version %d.%d\n", (x[11] & 0xf0) >> 4, x[11] & 0x0f);
if (x[12] & 0xfc) {
int raw_offset = (x[12] & 0xfc) >> 2;