Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/videomode Fix a wrong index value for edid_products[...



details:   https://anonhg.NetBSD.org/src/rev/a528415cf9da
branches:  trunk
changeset: 749027:a528415cf9da
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Nov 14 09:19:41 2009 +0000

description:
Fix a wrong index value for edid_products[] inside #ifdef EDIDVERBOSE in
edid_findproduct(). From Yasushi Oshima via FUKAUMI Naoki in udl(4) patch.

diffstat:

 sys/dev/videomode/edid.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9f4d1e95cd7a -r a528415cf9da sys/dev/videomode/edid.c
--- a/sys/dev/videomode/edid.c  Sat Nov 14 09:14:22 2009 +0000
+++ b/sys/dev/videomode/edid.c  Sat Nov 14 09:19:41 2009 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index