Commit bd66a892 authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Petr Mladek
Browse files

printk: use vprintk_func in vprintk()

vprintk(), just like printk(), better be using per-cpu printk_func
instead of direct vprintk_emit() call. Just in case if vprintk()
will ever be called from NMI, or from any other context that can
deadlock in printk().


Cc: Andrew Morton <>
Cc: Linus Torvalds <>
Cc: Jan Kara <>
Cc: Tejun Heo <>
Cc: Calvin Owens <>
Cc: Ingo Molnar <>
Cc: Peter Zijlstra <>
Cc: Andy Lutomirski <>
Cc: Peter Hurley <>
Signed-off-by: default avatarSergey Senozhatsky <>
Reviewed-by: default avatarSteven Rostedt <>
Signed-off-by: default avatarPetr Mladek <>
parent 548cf34b
......@@ -1803,7 +1803,7 @@ EXPORT_SYMBOL(vprintk_emit);
asmlinkage int vprintk(const char *fmt, va_list args)
return vprintk_emit(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args);
return vprintk_func(fmt, args);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment