From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 27 02:43:32 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C144116A401 for ; Sat, 27 Jan 2007 02:43:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 568DB13C49D for ; Sat, 27 Jan 2007 02:43:31 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l0R2hUlh013205; Sat, 27 Jan 2007 13:43:30 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l0R2hTFO013204; Sat, 27 Jan 2007 13:43:29 +1100 (EST) (envelope-from peter) Date: Sat, 27 Jan 2007 13:43:29 +1100 From: Peter Jeremy To: john@utzweb.net Message-ID: <20070127024329.GE927@turion.vk2pj.dyndns.org> References: <48652.69.93.78.27.1169794465.squirrel@69.93.78.27> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iFRdW5/EC4oqxDHL" Content-Disposition: inline In-Reply-To: <48652.69.93.78.27.1169794465.squirrel@69.93.78.27> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-acpi@freebsd.org Subject: Re: SYSCTL_ADD_UINT - what am i doing wrong? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 02:43:32 -0000 --iFRdW5/EC4oqxDHL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 2007-Jan-26 01:54:25 -0500, john@utzweb.net wrote: >I am having some gnarly grief with SYSCTL_ADD_UINT; it doesnt present the >data that i think that i have presented to it. What's strange about this >is that i use SYSCTL_ADD_STRING and it works perfectly. I suspect that your problem is that SYSCTL_ADD_UINT needs a uint32_t but you are apparently passing a byte. If you convert the sysctl output to hex, you will notice that the low byte is correct. --=20 Peter Jeremy --iFRdW5/EC4oqxDHL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFurxR/opHv/APuIcRAjblAJ0WJClgObDoZaozVlarKH6wAMqvsQCcCtjb tLSp+hoUUjNkjqWcGKFPIdU= =d5Xd -----END PGP SIGNATURE----- --iFRdW5/EC4oqxDHL--