Linux booting ends after adding printk statement to kernel source

I added one printk statement to the kernel source. After compiling and assembling the kernel, when I boot the system, it hangs, printing instructions.

printk(KERN_INFO "I'm inside the function!\n");

I use the i3 kernel in ubuntu 13.04, the kernel version is 3.4.106 (I also tried some other versions, but that was the case). Performing the same changes in the system of the 2nd duet , it loads normally.

+4
source share
1 answer

Using trace_printk()instead printk()helps to remain messy for some time critical functions.

ftrace.

      $ cd /sys/kernel/debug/tracing
      $ cat trace

http://june-takeout.blogspot.dk/2010/01/debugging-kernel-using-ftrace-part-1.html . " trace_printk()"

+4

All Articles