Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 May 2013 13:32:38 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250509 - head/usr.sbin/vidcontrol
Message-ID:  <201305111332.r4BDWcsn001224@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sat May 11 13:32:38 2013
New Revision: 250509
URL: http://svnweb.freebsd.org/changeset/base/250509

Log:
  The M_VESA_MODE_MAX is latest valid mode - not the first invalid.
  Permit its use in vidcontrol -i
  
  PR:		bin/119483
  Submitted by:	Dan Lukes <dan@obluda.cz>
  Arrival-Date:	Wed Jan 09 10:30:01 UTC 2008
  Reviewed by:	ed
  MFC after:	3 days

Modified:
  head/usr.sbin/vidcontrol/vidcontrol.c

Modified: head/usr.sbin/vidcontrol/vidcontrol.c
==============================================================================
--- head/usr.sbin/vidcontrol/vidcontrol.c	Sat May 11 13:21:31 2013	(r250508)
+++ head/usr.sbin/vidcontrol/vidcontrol.c	Sat May 11 13:32:38 2013	(r250509)
@@ -959,7 +959,7 @@ show_mode_info(void)
 	printf("---------------------------------------"
 	       "---------------------------------------\n");
 
-	for (mode = 0; mode < M_VESA_MODE_MAX; ++mode) {
+	for (mode = 0; mode <= M_VESA_MODE_MAX; ++mode) {
 		_info.vi_mode = mode;
 		if (ioctl(0, CONS_MODEINFO, &_info))
 			continue;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305111332.r4BDWcsn001224>