]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
hello-mod/hello.c: convert printk to pr_xxx
authorTrevor Woerner <twoerner@gmail.com>
Wed, 15 Sep 2021 00:38:04 +0000 (20:38 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Sep 2021 08:40:44 +0000 (09:40 +0100)
Convert to the newer pr_xxx aliases for logging, which embed the log level in
the macro names.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-skeleton/recipes-kernel/hello-mod/files/hello.c

index b68b0c348edef52675dfc53586a169fcdb173437..6b73a795240de230ee8cdf2bf33b8993bd6027b5 100644 (file)
 
 static int __init hello_init(void)
 {
-       printk("Hello World!\n");
+       pr_info("Hello World!\n");
        return 0;
 }
 
 static void __exit hello_exit(void)
 {
-       printk("Goodbye Cruel World!\n");
+       pr_info("Goodbye Cruel World!\n");
 }
 
 module_init(hello_init);