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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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. -- Peter Jeremy [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFurxR/opHv/APuIcRAjblAJ0WJClgObDoZaozVlarKH6wAMqvsQCcCtjb tLSp+hoUUjNkjqWcGKFPIdU= =d5Xd -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070127024329.GE927>
