Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jan 2007 13:43:29 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        john@utzweb.net
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: SYSCTL_ADD_UINT - what am i doing wrong?
Message-ID:  <20070127024329.GE927@turion.vk2pj.dyndns.org>
In-Reply-To: <48652.69.93.78.27.1169794465.squirrel@69.93.78.27>
References:  <48652.69.93.78.27.1169794465.squirrel@69.93.78.27>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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