From: enjoymindful@gmail.com (Real Name)
To: kernelnewbies@lists.kernelnewbies.org
Subject: about pr_debug
Date: Wed, 25 Jun 2014 14:34:11 +0800 [thread overview]
Message-ID: <20140625063411.GA8028@name> (raw)
In-Reply-To: <CA+5jrfk8gOgMOKiWxDHC4Yz4EE7Rdz6LLZhJAQCEKz67=rbyNg@mail.gmail.com>
On Wed, Jun 25, 2014 at 02:09:40PM +0800, lx wrote:
> hi all:
> I'm confused with pr_debug. My codes is:
> ###########################################
> #include <linux/module.h>
> #include <linux/kernel.h>
>
> 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
next prev parent reply other threads:[~2014-06-25 6:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 6:09 about pr_debug lx
2014-06-25 6:34 ` Real Name [this message]
2014-06-25 6:48 ` Varka Bhadram
2014-06-25 8:20 ` Bjørn Mork
2014-06-25 9:47 ` lx
2014-06-25 9:50 ` Varka Bhadram
2014-06-25 9:57 ` lx
2014-06-25 6:55 ` anish singh
2014-06-25 7:38 ` Pranay Srivastava
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140625063411.GA8028@name \
--to=enjoymindful@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.