printk: Export _vprintk similar to how _prf is exported
There are some corner cases where direct access to the formatter function is needed. Export _vprintk() so code can use it in a similar way that _prf() can be directly used. Change-Id: I9dfb68f87f310e900c662dc8beb320bb4ff7d8b2 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
57e1975241
commit
244a4dfe73
@ -55,6 +55,8 @@ extern __printf_like(1, 2) int printk(const char *fmt, ...);
|
||||
extern __printf_like(3, 4) int snprintk(char *str, size_t size,
|
||||
const char *fmt, ...);
|
||||
extern int vsnprintk(char *str, size_t size, const char *fmt, va_list ap);
|
||||
|
||||
void _vprintk(int (*out)(int, void *), void *ctx, const char *fmt, va_list ap);
|
||||
#else
|
||||
static inline __printf_like(1, 2) int printk(const char *fmt, ...)
|
||||
{
|
||||
|
||||
@ -75,8 +75,7 @@ void __printk_hook_install(int (*fn)(int))
|
||||
*
|
||||
* @return N/A
|
||||
*/
|
||||
static inline void _vprintk(out_func_t out, void *ctx, const char *fmt,
|
||||
va_list ap)
|
||||
void _vprintk(out_func_t out, void *ctx, const char *fmt, va_list ap)
|
||||
{
|
||||
int might_format = 0; /* 1 if encountered a '%' */
|
||||
int pad_zero = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user