Skip to contentSkip to conversation

Add HW_ERR printk prefix for hardware error logging

PATCH In review Huang Ying 1 participant 2 messages May 31, 2010 – Jun 11, 2010

lore
Share & tools
lore

Huang Ying

author
#0 lore raw

PATCH 1/2 Add HW_ERR printk prefix for hardware error logging

This makes hardware error related log in printk log more explicit. So that the users can report it to hardware vendor instead of LKML or software vendor.

---
 include/linux/kernel.h |    7 +++++++
 1 file changed, 7 insertions(+)
include/linux/kernel.h +7 -0
@@ -247,6 +247,13 @@ extern struct pid *session_of_pgrp(struc
 #define FW_WARN		"[Firmware Warn]: "
 #define FW_INFO		"[Firmware Info]: "
 
+/*
+ * HW_ERR
+ * Add this to a message for hardware errors, so that user can report
+ * it to hardware vendor instead of LKML or software vendor.
+ */
+#define HW_ERR		"[Hardware Error]: "
+
 #ifdef CONFIG_PRINTK
 asmlinkage int vprintk(const char *fmt, va_list args)
 	__attribute__ ((format (printf, 1, 0)));
#1 lore raw

[tip:x86/mce] x86, mce: Add HW_ERR printk prefix for hardware error logging

Commit-ID:  c6de9f08912311ddc1b3502b90e10fd449acd401
Gitweb:     http://git.kernel.org/tip/c6de9f08912311ddc1b3502b90e10fd449acd401
Author:     Huang Ying <[email protected]>
AuthorDate: Mon, 31 May 2010 16:48:09 +0800
Committer:  H. Peter Anvin <[email protected]>
CommitDate: Thu, 10 Jun 2010 21:28:43 -0700

x86, mce: Add HW_ERR printk prefix for hardware error logging

This makes hardware error related log in printk log more explicit. So that the users can report it to hardware vendor instead of LKML or software vendor.

LKML-Reference: <[email protected]>

---
 include/linux/kernel.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
include/linux/kernel.h +7 -0
index 8317ec4..3bf740b 100644
@@ -247,6 +247,13 @@ extern struct pid *session_of_pgrp(struct pid *pgrp);
 #define FW_WARN		"[Firmware Warn]: "
 #define FW_INFO		"[Firmware Info]: "
 
+/*
+ * HW_ERR
+ * Add this to a message for hardware errors, so that user can report
+ * it to hardware vendor instead of LKML or software vendor.
+ */
+#define HW_ERR		"[Hardware Error]: "
+
 #ifdef CONFIG_PRINTK
 asmlinkage int vprintk(const char *fmt, va_list args)
 	__attribute__ ((format (printf, 1, 0)));