diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-04-30 00:06:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 00:54:27 +0200 |
commit | 2c2fea11957c8c45bf873d9bcd7cd9a342654e79 (patch) | |
tree | a63ff950ac8799cec859f46b7f57b2f0fe2dc031 /fs/read_write.c | |
parent | ocfs2/dlm: remove redundant null pointer check (diff) | |
download | linux-2c2fea11957c8c45bf873d9bcd7cd9a342654e79.tar.xz linux-2c2fea11957c8c45bf873d9bcd7cd9a342654e79.zip |
debug_locks.h: make warning more verbose
The WARN_ON(1) in DEBUG_LOCKS_WARN_ON is surprisingly awkward to track
down when it's hit, as it's usually buried in macros, causing multiple
instances to land on the same line number.
This patch makes it more useful by switching to:
WARN(1, "DEBUG_LOCKS_WARN_ON(%s)", #c);
so that the particular DEBUG_LOCKS_WARN_ON is more easily identified and
grep'd for. For example:
WARNING: at kernel/mutex.c:198 _mutex_lock_nested+0x31c/0x380()
DEBUG_LOCKS_WARN_ON(l->magic != l)
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/read_write.c')
0 files changed, 0 insertions, 0 deletions