Skip to contentSkip to conversation

mce-inject: use pr_err() instead of printk(KERN_ERR, ...)

PATCH New Chen Yucong 1 participant 1 message Jan 30, 2016 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mce-inject: use pr_err() instead of printk(KERN_ERR, ...)

Converted printk(KERN_ERR to pr_err.
pr_ format is more compact and enable utilizing of pr_fmt macro.

---
 arch/x86/kernel/cpu/mcheck/mce-inject.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/x86/kernel/cpu/mcheck/mce-inject.c +1 -2
index c0b0d77..517619e 100644
@@ -183,8 +183,7 @@ static void raise_mce(struct mce *m)
 		start = jiffies;
 		while (!cpumask_empty(mce_inject_cpumask)) {
 			if (!time_before(jiffies, start + 2*HZ)) {
-				printk(KERN_ERR
-				"Timeout waiting for mce inject %lx\n",
+				pr_err("Timeout waiting for mce inject %lx\n",
 					*cpumask_bits(mce_inject_cpumask));
 				break;
 			}
Signature · 1 line
1.8.3.1