]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
lockdep: output lock_class key instead of address for forward dependency output
authorHuang, Ying <ying.huang@intel.com>
Fri, 13 Jun 2008 06:40:17 +0000 (14:40 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 13 Jun 2008 06:55:01 +0000 (08:55 +0200)
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 <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/lockdep_proc.c

index dc5d29648d852ccadd88ea79a91decc93653fa8b..688c5f1940bdc6f0cd8dc2485625588598111c5a 100644 (file)
@@ -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");
                }