diff options
author | Huang Ying <ying.huang@intel.com> | 2010-05-31 04:48:09 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-06-11 00:28:43 -0400 |
commit | c6de9f08912311ddc1b3502b90e10fd449acd401 (patch) | |
tree | 76c59689a86e3c0f614b689f3457bcc11a17dbcc /include/linux/kernel.h | |
parent | 3c417588603e5411f29d22a40f3b5ff71529a4f0 (diff) |
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.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
LKML-Reference: <1275295689.3444.462.camel@yhuang-dev.sh.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 8317ec4b9f3b..3bf740bb069e 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -247,6 +247,13 @@ extern struct pid *session_of_pgrp(struct pid *pgrp); | |||
247 | #define FW_WARN "[Firmware Warn]: " | 247 | #define FW_WARN "[Firmware Warn]: " |
248 | #define FW_INFO "[Firmware Info]: " | 248 | #define FW_INFO "[Firmware Info]: " |
249 | 249 | ||
250 | /* | ||
251 | * HW_ERR | ||
252 | * Add this to a message for hardware errors, so that user can report | ||
253 | * it to hardware vendor instead of LKML or software vendor. | ||
254 | */ | ||
255 | #define HW_ERR "[Hardware Error]: " | ||
256 | |||
250 | #ifdef CONFIG_PRINTK | 257 | #ifdef CONFIG_PRINTK |
251 | asmlinkage int vprintk(const char *fmt, va_list args) | 258 | asmlinkage int vprintk(const char *fmt, va_list args) |
252 | __attribute__ ((format (printf, 1, 0))); | 259 | __attribute__ ((format (printf, 1, 0))); |