]> git.baikalelectronics.ru Git - kernel.git/commit
bug: when !CONFIG_BUG, make WARN call no_printk to check format and args
authorJosh Triplett <josh@joshtriplett.org>
Mon, 7 Apr 2014 22:39:12 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:10 +0000 (16:36 -0700)
commit910e53ca07820c3054756f5359996cb1f70547e7
treeedd795dfd8709ed19b766977350df17f2e3ac19b
parentb6ef11c78d0cdbd8a0af9642b7fa69f63bd6b4dc
bug: when !CONFIG_BUG, make WARN call no_printk to check format and args

The stub version of WARN for !CONFIG_BUG completely ignored its format
string and subsequent arguments; make it check them instead, using
no_printk.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/bug.h