[PATCH 07/27] edid-decode: fix CVT version
Hans Verkuil
hverkuil at xs4all.nl
Thu Aug 31 11:41:00 UTC 2017
From: Hans Verkuil <hans.verkuil at cisco.com>
Parenthesis are needed to correctly report the CVT version.
Signed-off-by: Hans Verkuil <hans.verkuil at cisco.com>
---
edid-decode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/edid-decode.c b/edid-decode.c
index 251b8358..4105700f 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;
--
2.14.1
More information about the xorg-devel
mailing list