Skip to content

Commit

Permalink
lockdep: output lock_class key instead of address for forward depende…
Browse files Browse the repository at this point in the history
…ncy output

The key instead of address of lock_class should be output in
/proc/lockdep when forward dependency is output, because key is
output for lock_class itself as identifier too.

This patch is based on x86/auto-latest branch of git-x86 tree, and has
been tested on x86_64 platform.

Signed-off-by: Huang Ying <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
yhuang-intel authored and Ingo Molnar committed Jun 13, 2008
1 parent 6ad3676 commit 2429e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/lockdep_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int l_show(struct seq_file *m, void *v)

list_for_each_entry(entry, &class->locks_after, entry) {
if (entry->distance == 1) {
seq_printf(m, " -> [%p] ", entry->class);
seq_printf(m, " -> [%p] ", entry->class->key);
print_name(m, entry->class);
seq_puts(m, "\n");
}
Expand Down

0 comments on commit 2429e4e

Please sign in to comment.