j...@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 <libc.h>
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