diff options
author | Arjan van de Ven | 2008-07-25 19:45:39 -0700 |
---|---|---|
committer | Linus Torvalds | 2008-07-26 12:00:07 -0700 |
commit | 5cd2b459d326a424671dcd95f038649f7bf7cb96 (patch) | |
tree | 824514753e173bb69d3fde5fab18f8ddf909751d /lib/iomap.c | |
parent | f810a5cf28a818db96333cd23646f0227ec015b4 (diff) |
Use WARN() in lib/
Use WARN() instead of a printk+WARN_ON() pair; this way the message becomes
part of the warning section for better reporting/collection. In addition, one
of the if() clauses collapes into the WARN() entirely now.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/iomap.c')
-rw-r--r-- | lib/iomap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/iomap.c b/lib/iomap.c index 37a3ea4cac9f..d32229385151 100644 --- a/lib/iomap.c +++ b/lib/iomap.c @@ -40,8 +40,7 @@ static void bad_io_access(unsigned long port, const char *access) static int count = 10; if (count) { count--; - printk(KERN_ERR "Bad IO access at port %#lx (%s)\n", port, access); - WARN_ON(1); + WARN(1, KERN_ERR "Bad IO access at port %#lx (%s)\n", port, access); } } |