Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2014 19:07:35 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267973 - head/sys/kern
Message-ID:  <201406271907.s5RJ7ZYg050916@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Jun 27 19:07:35 2014
New Revision: 267973
URL: http://svnweb.freebsd.org/changeset/base/267973

Log:
  Add CTLFLAG_NOFETCH flag; console vty code runs before tunable fetch
  
  Also remove redundant "" assignment for string in BSS.
  
  Submitted by:	hselasky@

Modified:
  head/sys/kern/kern_cons.c

Modified: head/sys/kern/kern_cons.c
==============================================================================
--- head/sys/kern/kern_cons.c	Fri Jun 27 19:07:00 2014	(r267972)
+++ head/sys/kern/kern_cons.c	Fri Jun 27 19:07:35 2014	(r267973)
@@ -652,9 +652,9 @@ sysbeep(int pitch __unused, int period _
 /*
  * Temporary support for sc(4) to vt(4) transition.
  */
-static char vty_name[16] = "";
-SYSCTL_STRING(_kern, OID_AUTO, vty, CTLFLAG_RDTUN, vty_name, 0,
-    "Console vty driver");
+static char vty_name[16];
+SYSCTL_STRING(_kern, OID_AUTO, vty, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, vty_name,
+    0, "Console vty driver");
 
 int
 vty_enabled(unsigned vty)



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