From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A7BA3D8.1020903@tecmav.com> Date: Fri, 7 Aug 2009 05:47:36 +0200 From: Adriano Verardo User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080829 SeaMonkey/1.1.12 MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <634008374f96d39b2953843bc63d67ff@plan9.bell-labs.com> In-Reply-To: <634008374f96d39b2953843bc63d67ff@plan9.bell-labs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [9fans] binary sprint format Topicbox-Message-UUID: 3b9ad59e-ead5-11e9-9d60-3106f5b1d025 jmk@plan9.bell-labs.com wrote: > the kernel library include file (../port/lib.h) > does not have a pragma in it for %b. if this is > indeed a kernel driver you are writing then you > should add the pragma in the driver: > > #pragma varargck type "b" int > > the reason the kernel does not just use > is to catch the inadvertent use of routines from > libc.a that just won't work if used in the kernel > (e.g. functions that do system calls). if %b becomes > commonly used in the kernel and is safe to use > (not all format specifiers are safe in the kernel, > e.g. those for floating point) then it will find > its way into ../port/lib.h. > > --jim > > > It works perfectly. Thank you very much, Jim. adriano