mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
spinlock_debug: Print offset in addition to symbol name
If one has 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 into the symbol so we can determine which lock is having problems. Change-Id: If6fbb2eb2316b846d96da76c35fcfeadbef64401 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
parent
93a4c5f949
commit
99f8c3e4ce
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ static void spin_dump(raw_spinlock_t *lock, const char *msg)
|
|||
printk(KERN_EMERG "BUG: spinlock %s on CPU#%d, %s/%d\n",
|
||||
msg, raw_smp_processor_id(),
|
||||
current->comm, task_pid_nr(current));
|
||||
printk(KERN_EMERG " lock: %p, .magic: %08x, .owner: %s/%d, "
|
||||
printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, "
|
||||
".owner_cpu: %d\n",
|
||||
lock, lock->magic,
|
||||
owner ? owner->comm : "<none>",
|
||||
|
|
Loading…
Reference in a new issue