From: Hans Verkuil <hansv...@cisco.com>

Commit e12845d9 accidentally commented out the return 1 when no edid was found.

Uncomment it and also use stderr for the error message.

Signed-off-by: Hans Verkuil <hansv...@cisco.com>
---
 edid-decode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/edid-decode.c b/edid-decode.c
index 660ae7a9..58dc1c13 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -2153,8 +2153,8 @@ int main(int argc, char **argv)
     dump_breakdown(edid);
 
     if (!edid || memcmp(edid, "\x00\xFF\xFF\xFF\xFF\xFF\xFF\x00", 8)) {
-       printf("No header found\n");
-       // return 1;
+       fprintf(stderr, "No header found\n");
+       return 1;
     }
 
     printf("EDID version: %hd.%hd\n", edid[0x12], edid[0x13]);
-- 
2.14.1

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to