Blame SOURCES/mcelog-patch-e9aeed03f3d1.patch

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