diff options
author | Trevor Woerner <twoerner@gmail.com> | 2021-09-14 20:38:04 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-28 17:55:04 +0100 |
commit | 4ba745f8286a49e7d78c87288c96505d8898060c (patch) | |
tree | c8aafb06ac8eef1c8870f62f40ca93dd6a902f0b /meta-skeleton/recipes-kernel | |
parent | 165b089a7dd0ee3769703336eed8eb936cdfaf1e (diff) | |
download | poky-4ba745f8286a49e7d78c87288c96505d8898060c.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.
(From OE-Core rev: be119ead6d5bb01a50f78fd34024ded1289c9fd7)
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 @@ | |||
21 | 21 | ||
22 | static int __init hello_init(void) | 22 | static int __init hello_init(void) |
23 | { | 23 | { |
24 | printk("Hello World!\n"); | 24 | pr_info("Hello World!\n"); |
25 | return 0; | 25 | return 0; |
26 | } | 26 | } |
27 | 27 | ||
28 | static void __exit hello_exit(void) | 28 | static void __exit hello_exit(void) |
29 | { | 29 | { |
30 | printk("Goodbye Cruel World!\n"); | 30 | pr_info("Goodbye Cruel World!\n"); |
31 | } | 31 | } |
32 | 32 | ||
33 | module_init(hello_init); | 33 | module_init(hello_init); |