Commit ad81c27c authored by Andrew Morton's avatar Andrew Morton Committed by Benjamin Herrenschmidt

[PATCH] Print function names during do_initcall debugging

From Jan-Benedict Glaw <jbglaw@lug-owl.de>
parent 6e602e59
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <linux/profile.h> #include <linux/profile.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/kallsyms.h>
#include <linux/writeback.h> #include <linux/writeback.h>
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/efi.h> #include <linux/efi.h>
...@@ -510,8 +511,11 @@ static void __init do_initcalls(void) ...@@ -510,8 +511,11 @@ static void __init do_initcalls(void)
for (call = &__initcall_start; call < &__initcall_end; call++) { for (call = &__initcall_start; call < &__initcall_end; call++) {
char *msg; char *msg;
if (initcall_debug) if (initcall_debug) {
printk("calling initcall 0x%p\n", *call); printk(KERN_DEBUG "Calling initcall 0x%p", *call);
print_symbol(": %s()", (unsigned long) *call);
printk("\n");
}
(*call)(); (*call)();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment