I am trying to add some lines in the kernel's source code, so that when that line is hit, a message will be generated for me to debug. Normally I would do it right away by adding an fprintf function in the source, and wait until that code is processed.
But for the kernel, the issue is different. The standard C libraries are not there, even when I add a library, it generates an error. So I cannot compile the kernel including the standard c libraries for my purpose.
However; there is a function such as this;
printk(KERN_DEBUG "any string"))
I can use this function right away but the problem is that, the system supresses some messages from reaching the destination (/dev/console);
This is the log;
Aug 19:02:17:14 linux kernel: NET: 19 messages supressed
Indeed this was put there to reduce the number of messages to be seen on the screen, but it would also disable the messages I deliberately put there. Now any ideas about what I can do (perhaps another means to send messages from kernel - or disabling that surpassing problem ?)