Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1322592 > unrolled thread

[PATCH] mcheck/threshold: use pr_err rather than printk(KERN_ERR ...)

Started byChen Yucong <slaoub@gmail.com>
First post2016-01-31 10:40 +0100
Last post2016-01-31 10:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] mcheck/threshold: use pr_err rather than printk(KERN_ERR ...) Chen Yucong <slaoub@gmail.com> - 2016-01-31 10:40 +0100

#1322592 — [PATCH] mcheck/threshold: use pr_err rather than printk(KERN_ERR ...)

FromChen Yucong <slaoub@gmail.com>
Date2016-01-31 10:40 +0100
Subject[PATCH] mcheck/threshold: use pr_err rather than printk(KERN_ERR ...)
Message-ID<qWWE9-1hh-11@gated-at.bofh.it>
Use the current logging styles. And convert printk(KERN_ERR ...)
to pr_err(...) for threshold.c.

Signed-off-by: Chen Yucong <slaoub@gmail.com>
---
 arch/x86/kernel/cpu/mcheck/threshold.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/mcheck/threshold.c b/arch/x86/kernel/cpu/mcheck/threshold.c
index 7245980..fcf9ae9 100644
--- a/arch/x86/kernel/cpu/mcheck/threshold.c
+++ b/arch/x86/kernel/cpu/mcheck/threshold.c
@@ -12,8 +12,8 @@
 
 static void default_threshold_interrupt(void)
 {
-	printk(KERN_ERR "Unexpected threshold interrupt at vector %x\n",
-			 THRESHOLD_APIC_VECTOR);
+	pr_err("Unexpected threshold interrupt at vector %x\n",
+		THRESHOLD_APIC_VECTOR);
 }
 
 void (*mce_threshold_vector)(void) = default_threshold_interrupt;
-- 
1.8.3.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web