]> git.baikalelectronics.ru Git - kernel.git/commit
vsprintf: Recursive vsnprintf: Add "%pV", struct va_format
authorJoe Perches <joe@perches.com>
Sun, 27 Jun 2010 01:02:33 +0000 (01:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Jul 2010 17:40:17 +0000 (10:40 -0700)
commitc6e5ed417f5da74d75fc6730c59fb438b21671a8
treefb7a83297d8bf2680df9616ebf58bec89229ff3b
parentd611d0549b33e250a2239776c5d34a82cd413da0
vsprintf: Recursive vsnprintf: Add "%pV", struct va_format

Add the ability to print a format and va_list from a structure pointer

Allows __dev_printk to be implemented as a single printk while
minimizing string space duplication.

%pV should not be used without some mechanism to verify the
format and argument use ala __attribute__(format (printf(...))).

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/kernel.h
lib/vsprintf.c