spinlock_debug: print offset in addition to symbol name
commit4b0681487bf72fdb86b42c93b7d8a607e5a426b1
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 30 Jul 2012 21:41:11 +0000 (30 14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:16 +0000 (30 17:25 -0700)
tree908da53ebb82951b1051f0c2021857fac9d7563f
parent7463449b8287162454d7e00bf7fd2c64f72c1dc8
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