Re: [patch 2/3] Add a WARN() macro; this is WARN_ON() + printk arguments

From: Jiri Slaby
Date: Wed May 07 2008 - 03:32:07 EST


On 05/07/2008 08:21 AM, Arjan van de Ven wrote:
Subject: Add a WARN() macro; this is WARN_ON() + printk arguments
[...]
--- a/include/asm-generic/bug.h
+++ b/include/asm-generic/bug.h
@@ -34,9 +34,13 @@ struct bug_entry {
#ifndef __WARN
#ifndef __ASSEMBLY__
extern void warn_on_slowpath(const char *file, const int line);
+extern void warn_slowpath(const char *file, const int line, const char *fmt, ...);

__attribute__((format(printf,3,4)))
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/