diff options
author | Borislav Petkov <bp@suse.de> | 2018-12-05 21:05:13 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2018-12-06 12:04:52 +0100 |
commit | 3bfaf95cb1fe81872df884956c704469e68a5bee (patch) | |
tree | 6d4d88383bb311f34e92dc71ad733277f0ccc320 /arch/x86/kernel/cpu/mce/internal.h | |
parent | 21afaf181362b4aeb5be72705d2914673b336149 (diff) |
x86/mce: Unify pr_* prefix
Move the pr_fmt prefix to internal.h and include it everywhere. This
way, all pr_* printed strings will be prepended with "mce: ".
No functional changes.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20181205200913.GR29510@zn.tnic
Diffstat (limited to 'arch/x86/kernel/cpu/mce/internal.h')
-rw-r--r-- | arch/x86/kernel/cpu/mce/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mce/internal.h b/arch/x86/kernel/cpu/mce/internal.h index ceb67cd5918f..af5eab1e65e2 100644 --- a/arch/x86/kernel/cpu/mce/internal.h +++ b/arch/x86/kernel/cpu/mce/internal.h @@ -2,6 +2,9 @@ #ifndef __X86_MCE_INTERNAL_H__ #define __X86_MCE_INTERNAL_H__ +#undef pr_fmt +#define pr_fmt(fmt) "mce: " fmt + #include <linux/device.h> #include <asm/mce.h> |