From: Cyril Brulebois Date: Mon, 16 Aug 2021 19:02:55 +0000 (+0200) Subject: Mention pr_info() rather than KERN_INFO X-Git-Tag: latest~139^2~7 X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=d85944d1070ce373da897777e8b091b11b6ea0f3;p=lkmpg Mention pr_info() rather than KERN_INFO The latter might have been used along with printk() in an earlier version, but pr_info() is getting used consistently so adjust the #include comments accordingly. For the avoidance of doubt, pr_info() actually comes from printk.h, which gets #include'd by kernel.h. --- diff --git a/examples/hello-1.c b/examples/hello-1.c index c12d921..0abcf64 100644 --- a/examples/hello-1.c +++ b/examples/hello-1.c @@ -1,7 +1,7 @@ /* * hello-1.c - The simplest kernel module. */ -#include /* Needed for KERN_INFO */ +#include /* Needed for pr_info() */ #include /* Needed by all modules */ int init_module(void) diff --git a/examples/hello-2.c b/examples/hello-2.c index 503dcce..7fd3109 100644 --- a/examples/hello-2.c +++ b/examples/hello-2.c @@ -3,7 +3,7 @@ * This is preferred over using init_module() and cleanup_module(). */ #include /* Needed for the macros */ -#include /* Needed for KERN_INFO */ +#include /* Needed for pr_info() */ #include /* Needed by all modules */ static int __init hello_2_init(void) diff --git a/examples/hello-3.c b/examples/hello-3.c index bcfa804..e6f8afa 100644 --- a/examples/hello-3.c +++ b/examples/hello-3.c @@ -2,7 +2,7 @@ * hello-3.c - Illustrating the __init, __initdata and __exit macros. */ #include /* Needed for the macros */ -#include /* Needed for KERN_INFO */ +#include /* Needed for pr_info() */ #include /* Needed by all modules */ static int hello3_data __initdata = 3; diff --git a/examples/hello-4.c b/examples/hello-4.c index 69c2154..260af44 100644 --- a/examples/hello-4.c +++ b/examples/hello-4.c @@ -2,7 +2,7 @@ * hello-4.c - Demonstrates module documentation. */ #include /* Needed for the macros */ -#include /* Needed for KERN_INFO */ +#include /* Needed for pr_info() */ #include /* Needed by all modules */ MODULE_LICENSE("GPL");