]> git.baikalelectronics.ru Git - kernel.git/commit
spinlock_debug: print offset in addition to symbol name
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 30 Jul 2012 21:41:11 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:16 +0000 (17:25 -0700)
commit6a520c0e9063d7dd85274afeac72cad1582aef42
tree908da53ebb82951b1051f0c2021857fac9d7563f
parent080513d536e93392d027f87c982e4e3ebbff1fe8
spinlock_debug: print offset in addition to symbol name

If there are two spinlocks embedded in a structure that kallsyms knows
about and one of the spinlocks locks up we will print the name of the
containing structure instead of the address of the lock.  This is quite
bad, so let's use %pS instead of %ps so we get an offset in addition to
the symbol so we can determine which particular lock is having problems.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/spinlock_debug.c