All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [KJ] [PATCH] include KERN_* constant in printk() calls in
Date: Wed, 11 Apr 2007 06:50:05 +0000	[thread overview]
Message-ID: <20070411065005.GI24898@traven> (raw)
In-Reply-To: <20070409194151.GG4262@traven>

include KERN_* constant in printk() calls in arch/i386/mach-default/setup.c

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
 
---
diff --git a/arch/i386/mach-default/setup.c b/arch/i386/mach-default/setup.c
index c788162..f1891b6 100644
--- a/arch/i386/mach-default/setup.c
+++ b/arch/i386/mach-default/setup.c
@@ -115,15 +115,15 @@ void mca_nmi_hook(void)
 	 * at the moment.
 	 */
 
-	printk("NMI generated from unknown source!\n");
+	printk(KERN_WARNING "NMI generated from unknown source!\n");
 }
 #endif
 
 static __init int no_ipi_broadcast(char *str)
 {
 	get_option(&str, &no_broadcast);
-	printk ("Using %s mode\n", no_broadcast ? "No IPI Broadcast" :
-											"IPI Broadcast");
+	printk(KERN_INFO "Using %s mode\n",
+	       no_broadcast ? "No IPI Broadcast" : "IPI Broadcast");
 	return 1;
 }
 
@@ -131,8 +131,8 @@ __setup("no_ipi_broadcast", no_ipi_broadcast);
 
 static int __init print_ipi_mode(void)
 {
-	printk ("Using IPI %s mode\n", no_broadcast ? "No-Shortcut" :
-											"Shortcut");
+	printk(KERN_INFO "Using IPI %s mode\n",
+	       no_broadcast ? "No-Shortcut" : "Shortcut");
 	return 0;
 }
 

-- 
Matthias Kaehlcke
Linux Application Developer
Barcelona

              Comunicar bichos a <bug-coreutils@gnu.org>
                     (LANG=es_ES uname --help)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

WARNING: multiple messages have this Message-ID (diff)
From: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] include KERN_* constant in printk() calls in arch/i386/mach-default/setup.c
Date: Sat, 14 Apr 2007 07:50:05 +0200	[thread overview]
Message-ID: <20070411065005.GI24898@traven> (raw)

include KERN_* constant in printk() calls in arch/i386/mach-default/setup.c

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
 
---
diff --git a/arch/i386/mach-default/setup.c b/arch/i386/mach-default/setup.c
index c788162..f1891b6 100644
--- a/arch/i386/mach-default/setup.c
+++ b/arch/i386/mach-default/setup.c
@@ -115,15 +115,15 @@ void mca_nmi_hook(void)
 	 * at the moment.
 	 */
 
-	printk("NMI generated from unknown source!\n");
+	printk(KERN_WARNING "NMI generated from unknown source!\n");
 }
 #endif
 
 static __init int no_ipi_broadcast(char *str)
 {
 	get_option(&str, &no_broadcast);
-	printk ("Using %s mode\n", no_broadcast ? "No IPI Broadcast" :
-											"IPI Broadcast");
+	printk(KERN_INFO "Using %s mode\n",
+	       no_broadcast ? "No IPI Broadcast" : "IPI Broadcast");
 	return 1;
 }
 
@@ -131,8 +131,8 @@ __setup("no_ipi_broadcast", no_ipi_broadcast);
 
 static int __init print_ipi_mode(void)
 {
-	printk ("Using IPI %s mode\n", no_broadcast ? "No-Shortcut" :
-											"Shortcut");
+	printk(KERN_INFO "Using IPI %s mode\n",
+	       no_broadcast ? "No-Shortcut" : "Shortcut");
 	return 0;
 }
 

-- 
Matthias Kaehlcke
Linux Application Developer
Barcelona

              Comunicar bichos a <bug-coreutils@gnu.org>
                     (LANG=es_ES uname --help)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-

  parent reply	other threads:[~2007-04-11  6:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-09 19:41 [KJ] [PATCH] include KERN_* constant in printk() calls in mm/slab.c Matthias Kaehlcke
2007-04-09 20:02 ` [KJ] [PATCH] include KERN_* constant in printk() calls in Dave Jones
2007-04-09 20:08 ` Matthias Kaehlcke
2007-04-09 20:53 ` Matthias Kaehlcke
2007-04-09 21:23 ` Matthew Wilcox
2007-04-09 21:41 ` Matthew Wilcox
2007-04-10  6:48 ` Matthias Kaehlcke
2007-04-10 21:07 ` Alexey Dobriyan
2007-04-10 21:37 ` Dave Jones
2007-04-10 21:50 ` Robert P. J. Day
2007-04-10 21:58 ` Randy Dunlap
2007-04-11  6:50 ` Matthias Kaehlcke [this message]
2007-04-14  5:50   ` [PATCH] include KERN_* constant in printk() calls in arch/i386/mach-default/setup.c Matthias Kaehlcke

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=20070411065005.GI24898@traven \
    --to=matthias.kaehlcke@gmail.com \
    --cc=linux-kernel@vger.kernel.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.