Module Name: src Committed By: tsutsui Date: Sat Nov 14 09:19:41 UTC 2009
Modified Files: src/sys/dev/videomode: edid.c Log Message: Fix a wrong index value for edid_products[] inside #ifdef EDIDVERBOSE in edid_findproduct(). From Yasushi Oshima via FUKAUMI Naoki in udl(4) patch. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/dev/videomode/edid.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/videomode/edid.c diff -u src/sys/dev/videomode/edid.c:1.5 src/sys/dev/videomode/edid.c:1.6 --- src/sys/dev/videomode/edid.c:1.5 Wed Mar 7 19:56:40 2007 +++ src/sys/dev/videomode/edid.c Sat Nov 14 09:19:41 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: edid.c,v 1.5 2007/03/07 19:56:40 macallan Exp $ */ +/* $NetBSD: edid.c,v 1.6 2009/11/14 09:19:41 tsutsui Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: edid.c,v 1.5 2007/03/07 19:56:40 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: edid.c,v 1.6 2009/11/14 09:19:41 tsutsui Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -101,7 +101,7 @@ #ifdef EDIDVERBOSE int n; - for (n = 0; n < edid_nvendors; n++) + for (n = 0; n < edid_nproducts; n++) if ((edid_products[n].product == product) && (memcmp(edid_products[n].vendor, vendor, 3) == 0)) return (edid_products[n].name);