Blame SOURCES/mcelog-patch-e9aeed03f3d1.patch

bb432d
From 4e9aeed03f3d17fb92662ff656566b0afb2ec99f Mon Sep 17 00:00:00 2001
bb432d
From: Prarit Bhargava <prarit@redhat.com>
bb432d
Date: Wed, 11 Jan 2017 10:01:40 -0500
bb432d
Subject: [PATCH] mcelog: is_cpu_supported() error message must be printed
bb432d
 Eprintf
bb432d
bb432d
SYSERRprintf outputs a ": Success" message so the error message looks like
bb432d
bb432d
mcelog: ERROR: AMD Processor family 21: mcelog does not support this
bb432d
processor.  Please use the edac_mce_amd module instead.
bb432d
: Success
bb432d
bb432d
which is confusing for end-users.
bb432d
bb432d
I changed this to do Eprintf which keeps the error return to userspace
bb432d
but drops the ": Success" line.
bb432d
bb432d
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
bb432d
Signed-off-by: Andi Kleen <ak@linux.intel.com>
bb432d
---
bb432d
 mcelog.c |    2 +-
bb432d
 1 file changed, 1 insertion(+), 1 deletion(-)
bb432d
bb432d
diff --git a/mcelog.c b/mcelog.c
bb432d
index 96bebee14afe..37c0af624870 100644
bb432d
--- a/mcelog.c
bb432d
+++ b/mcelog.c
bb432d
@@ -542,7 +542,7 @@ int is_cpu_supported(void)
bb432d
 				if (family == 15) {
bb432d
 					cputype = CPU_K8;
bb432d
 				} else if (family >= 16) {
bb432d
-					SYSERRprintf("ERROR: AMD Processor family %d: mcelog does not support this processor.  Please use the edac_mce_amd module instead.\n", family);
bb432d
+					Eprintf("ERROR: AMD Processor family %d: mcelog does not support this processor.  Please use the edac_mce_amd module instead.\n", family);
bb432d
 					return 0;
bb432d
 				}
bb432d
 			} else if (!strcmp(vendor,"GenuineIntel"))
bb432d
-- 
bb432d
1.7.9.3
bb432d