Re: wrapping a vararg C function (specifically, log() in the kernel)

2014-12-18 Thread Ian Lepore
On Thu, 2014-12-18 at 15:21 +0100, Luigi Rizzo wrote: > Hi, > in the porting of some kernel code to FreeBSD, i need to remap one > function with a variable number of arguments to the log() function > from the freebsd kernel. > > Normally i would do > > #define WARN(x, args...)log(LO

wrapping a vararg C function (specifically, log() in the kernel)

2014-12-18 Thread Luigi Rizzo
Hi, in the porting of some kernel code to FreeBSD, i need to remap one function with a variable number of arguments to the log() function from the freebsd kernel. Normally i would do #define WARN(x, args...)log(LOG_WARNING, args) but this does not work in my case because the func