Dump stack during sysctl registration failure

Let's make immediately obvious from where sysctl comes from and messages
itself more noticeable.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Alexey Dobriyan 2007-11-05 14:50:52 -08:00 committed by Linus Torvalds
parent df59ebc49e
commit 5db6a4dac1
1 changed files with 1 additions and 0 deletions

View File

@ -1432,6 +1432,7 @@ static void set_fail(const char **fail, struct ctl_table *table, const char *str
printk(KERN_ERR "sysctl table check failed: "); printk(KERN_ERR "sysctl table check failed: ");
sysctl_print_path(table); sysctl_print_path(table);
printk(" %s\n", *fail); printk(" %s\n", *fail);
dump_stack();
} }
*fail = str; *fail = str;
} }