From mboxrd@z Thu Jan 1 00:00:00 1970 From: enjoymindful@gmail.com (Real Name) Date: Wed, 25 Jun 2014 14:34:11 +0800 Subject: about pr_debug In-Reply-To: References: Message-ID: <20140625063411.GA8028@name> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Wed, Jun 25, 2014 at 02:09:40PM +0800, lx wrote: > hi all: > I'm confused with pr_debug. My codes is: > ########################################### > #include > #include > > static int __init init_page_dir(void) > { > pr_debug("Hello world\n"); > return 0; > } > > static void __exit exit_page_dir(void) > { > pr_debug("\nGoodbye now...\n\n"); > } > > MODULE_LICENSE("GPL"); > module_init(init_page_dir); > module_exit(exit_page_dir); > ########################################### > I make it, and insmod it. But the messages of "Hello world" don't show. > > So, My question is If i want to fix it , I should set the > *DEFAULT_MESSAGE_LOGLEVEL > and * > *rebuild the kernel ?* > https://www.kernel.org/doc/local/pr_debug.txt > My kernel version is:2.6.18 > OS is: centOS > > Thank you. > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies