On Mon, Dec 12, 2011 at 21:18, loody <miloody@xxxxxxxxx> wrote: > hi all: > my questions are below: > 1. Can I temporarily let kernel message show in stdout? > I google some key word as "console_loglevel" and I found following methods: > a. echo 8 > /proc/sys/kernel/printk > b. write a simple program which calling "klogctl(8, NULL, level)" > Then I purposely connect/disconnect USB, but my console keep quiet. > But dmesg shows connect/disconnect messages. Perhaps this document could explain the basics better than me: http://lxr.linux.no/#linux+v3.1.5/Documentation/sysctl/kernel.txt#L405 Hope that helps... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies