aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJames Hogan <[email protected]>2013-04-29 15:06:06 -0700
committerLinus Torvalds <[email protected]>2013-04-29 15:54:27 -0700
commit2c2fea11957c8c45bf873d9bcd7cd9a342654e79 (patch)
treea63ff950ac8799cec859f46b7f57b2f0fe2dc031 /tools/perf/scripts/python/bin
parent7cfa74d1018f871e82da1a36992369df5ddda6fa (diff)
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 <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: David Howells <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions