From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 10:36:50 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4030716A4CE for ; Wed, 28 Jan 2004 10:36:50 -0800 (PST) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18FB643D2F for ; Wed, 28 Jan 2004 10:36:39 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 16985 invoked from network); 28 Jan 2004 18:36:38 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 28 Jan 2004 18:36:38 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i0SIZwMA063934; Wed, 28 Jan 2004 13:36:31 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Nate Lawson Date: Wed, 28 Jan 2004 12:45:12 -0500 User-Agent: KMail/1.5.4 References: <20040126213228.D31623@root.org> <200401271328.29574.jhb@FreeBSD.org> <20040127222750.P77555@root.org> In-Reply-To: <20040127222750.P77555@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401281245.12012.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: current@freebsd.org Subject: Re: getenv_string broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 18:36:50 -0000 On Wednesday 28 January 2004 01:28 am, Nate Lawson wrote: > On Tue, 27 Jan 2004, John Baldwin wrote: > > On Tuesday 27 January 2004 12:42 am, Nate Lawson wrote: > > > I have a getenv_string() that is never being evaluated. I declared it > > > as follows: > > > > > > static char acpi_os_name[128]; > > > TUNABLE_STR("hw.acpi.os_name", acpi_os_name, sizeof(acpi_os_name)); > > > > > > The contents of acpi_os_name are never filled in from the variable I > > > declared in /boot/loader.conf. Just to be sure, I made a loop that > > > prints out the contents of kenvp. It does not have hw.acpi.os_name. > > > > > > Here is a snippet of the kenvp array, right where my tunable should be > > > (os2 is from a test below): > > > > > > name: hint.vt.0.disabled=1 > > > name: hw.acpi.os2=8 > > > name: hw.acpi.reset_video=0 > > > name: hw.acpi.verbose=1 > > > name: hw.cbb.start_memory=0xc0203000 How did you dump this? If os_name isn't in the list, then that is going to be a problem of course. :) That would indicate that a bug in the loader though and not in getenv_string(). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org