Questions tagged [printk]

printk is a function that prints messages and is used in the C Programming Language exclusively for the Linux Kernel. It accepts a string parameter called the format string, which specifies a method for rendering an arbitrary number of varied data type parameter(s) into a string. The string is then printed to the kernel log.

94 questions
0
votes
2 answers

Printk not printing in spite of properly set loglevel

my problem is, I am trying to build a driver into the kernel. I decided to test my code with a simple Hello World program. The code looks like: #include #include #include #include…
Rai
  • 1,811
  • 3
  • 13
  • 11
0
votes
1 answer

printk in tcp_cubic.c

I have included the following printk statement in tcp_cubic.c static u32 bictcp_recalc_ssthresh(struct sock *sk) { .. if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE +…
0
votes
1 answer

where to add printk.time ?

This is a very simple question yet I have little knowledge in Linux and starting to build it . I am trying to debug the kernel using printk times. I am following this website: http://elinux.org/Printk_Times and in the middle it says to use it: "When…
Louis
  • 1,265
  • 1
  • 15
  • 22
-1
votes
2 answers

printk messages don't appear if module loaded during boot

I have added some printk(KERN_ALERT "sample\n"); into a driver module. These prints appear if i manually insmod the driver. But if the same driver is loaded during boot, the messages do not appear. I am sure that the same module is loaded during…
rohith_kugve
  • 27
  • 1
  • 4
1 2 3 4 5 6
7