svn commit: r250730 - stable/8/usr.sbin/vidcontrol
Eitan Adler
eadler at FreeBSD.org
Fri May 17 00:40:49 UTC 2013
Author: eadler
Date: Fri May 17 00:40:48 2013
New Revision: 250730
URL: http://svnweb.freebsd.org/changeset/base/250730
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/8/usr.sbin/vidcontrol/vidcontrol.c
Modified: stable/8/usr.sbin/vidcontrol/vidcontrol.c
==============================================================================
--- stable/8/usr.sbin/vidcontrol/vidcontrol.c Fri May 17 00:40:46 2013 (r250729)
+++ stable/8/usr.sbin/vidcontrol/vidcontrol.c Fri May 17 00:40:48 2013 (r250730)
@@ -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
mailing list