]> git.karo-electronics.de Git - linux-beck.git/commit
Add a WARN() macro; this is WARN_ON() + printk arguments
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 25 Jul 2008 08:45:53 +0000 (01:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:29 +0000 (10:53 -0700)
commita8f18b909c0a3f22630846207035c8b84bb252b8
tree72a2dee787b9d077cc24f5cf7392b071401506ec
parentb6c63937001889af6fe431aaba97e59d04e028e7
Add a WARN() macro; this is WARN_ON() + printk arguments

Add a WARN() macro that acts like WARN_ON(), with the added feature that it
takes a printk like argument that is printed as part of the warning message.

[akpm@linux-foundation.org: fix printk arguments]
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Greg KH <greg@kroah.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/bug.h
kernel/panic.c