mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
hello-mod/hello.c: convert printk to pr_xxx
Convert to the newer pr_xxx aliases for logging, which embed the log level in the macro names. (From OE-Core rev: be119ead6d5bb01a50f78fd34024ded1289c9fd7) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
165b089a7d
commit
4ba745f828
|
@ -21,13 +21,13 @@
|
||||||
|
|
||||||
static int __init hello_init(void)
|
static int __init hello_init(void)
|
||||||
{
|
{
|
||||||
printk("Hello World!\n");
|
pr_info("Hello World!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __exit hello_exit(void)
|
static void __exit hello_exit(void)
|
||||||
{
|
{
|
||||||
printk("Goodbye Cruel World!\n");
|
pr_info("Goodbye Cruel World!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(hello_init);
|
module_init(hello_init);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user