svn commit: r250729 - stable/9/usr.sbin/vidcontrol

Eitan Adler eadler at FreeBSD.org
Fri May 17 00:40:47 UTC 2013


Author: eadler
Date: Fri May 17 00:40:46 2013
New Revision: 250729
URL: http://svnweb.freebsd.org/changeset/base/250729

Log:
  MFC r250509:
  	The M_VESA_MODE_MAX is latest valid mode - not the first invalid.
  	Permit its use in vidcontrol -i
  
  PR:		bin/119483

Modified:
  stable/9/usr.sbin/vidcontrol/vidcontrol.c
Directory Properties:
  stable/9/usr.sbin/vidcontrol/   (props changed)

Modified: stable/9/usr.sbin/vidcontrol/vidcontrol.c
==============================================================================
--- stable/9/usr.sbin/vidcontrol/vidcontrol.c	Fri May 17 00:26:56 2013	(r250728)
+++ stable/9/usr.sbin/vidcontrol/vidcontrol.c	Fri May 17 00:40:46 2013	(r250729)
@@ -961,7 +961,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;


More information about the svn-src-stable-9 mailing list