All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Trevor Woerner" <twoerner@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [meta-skeleton][PATCH 2/2] hello-mod/hello.c: convert printk to pr_xxx
Date: Tue, 14 Sep 2021 20:38:04 -0400	[thread overview]
Message-ID: <20210915003804.34746-2-twoerner@gmail.com> (raw)
In-Reply-To: <20210915003804.34746-1-twoerner@gmail.com>

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>
---
 meta-skeleton/recipes-kernel/hello-mod/files/hello.c | 4 ++--
 1 file 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);
-- 
2.30.0.rc0


  reply	other threads:[~2021-09-15  0:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15  0:38 [meta-skeleton][PATCH 1/2] hello-mod/hello.c: convert to module_init/module_exit Trevor Woerner
2021-09-15  0:38 ` Trevor Woerner [this message]
2021-09-15 10:53   ` [OE-core] [meta-skeleton][PATCH 2/2] hello-mod/hello.c: convert printk to pr_xxx Quentin Schulz
2021-09-27  7:42     ` Trevor Woerner
2021-09-27  8:41       ` Richard Purdie
2021-09-15 10:52 ` [OE-core] [meta-skeleton][PATCH 1/2] hello-mod/hello.c: convert to module_init/module_exit Quentin Schulz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210915003804.34746-2-twoerner@gmail.com \
    --to=twoerner@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.