Messages in this thread | | | Date | Thu, 29 May 2008 19:20:12 +0200 | From | Sam Ravnborg <> | Subject | Re: optimizing out inline functions |
| |
On Thu, May 29, 2008 at 11:39:32AM -0500, Steve French wrote: > Ran into one loosely related question, printk takes a variable > argument list, so the calling function in this case would also need to > be able to handle thos variable arguments. With macros, we are able > to do things like with variable arguments easily > > #define function_to_print_some_warning(format, arg...) > printk(KERN_WARNING ": " format "\n" , ## arg) > > Are there style rules (or nicely written examples) for doing this > (variable argument lists) with (inline) functions
Searching the code base I'm sure you will find plenty. But I cannot point one out from the top of my head.
Sam
| |