summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hansverk@cisco.com>2017-08-31 13:41:13 +0200
committerAdam Jackson <ajax@redhat.com>2017-09-07 12:13:32 -0400
commit4f30798e0306309add1f273bb9aca7f5a00c8464 (patch)
tree4a755e1bb0844a3ba2bc9f49eebc0d9a86eab6ba
parentf1799a90e4a7ff114cfb24ad6ea0660159dd94a5 (diff)
edid-decode: return 1 if no edid was found
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 <hansverk@cisco.com>
-rw-r--r--edid-decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/edid-decode.c b/edid-decode.c
index 660ae7a..58dc1c1 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]);