diff options
author | Trevor Woerner <twoerner@gmail.com> | 2021-09-14 20:38:04 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-27 09:40:44 +0100 |
commit | be119ead6d5bb01a50f78fd34024ded1289c9fd7 (patch) | |
tree | 51d90f41943f70f48f52e718c36415e126ecfc5c /meta-skeleton/recipes-kernel | |
parent | 5d56de8cd653d2a3a7f4c104d50c14e22d412f66 (diff) | |
download | openembedded-core-contrib-be119ead6d5bb01a50f78fd34024ded1289c9fd7.tar.gz |
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.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-skeleton/recipes-kernel')
-rw-r--r-- | meta-skeleton/recipes-kernel/hello-mod/files/hello.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-skeleton/recipes-kernel/hello-mod/files/hello.c b/meta-skeleton/recipes-kernel/hello-mod/files/hello.c index b68b0c348e..6b73a79524 100644 --- a/meta-skeleton/recipes-kernel/hello-mod/files/hello.c +++ b/meta-skeleton/recipes-kernel/hello-mod/files/hello.c @@ -21,13 +21,13 @@ 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); |