File mcelog_invert_prefill_db_warning.patch of Package mcelog

---
 memdb.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Index: mcelog-1.2.9/memdb.c
===================================================================
--- mcelog-1.2.9.orig/memdb.c	2016-01-20 18:33:20.000000000 +0100
+++ mcelog-1.2.9/memdb.c	2016-05-25 17:21:54.339327325 +0200
@@ -430,11 +430,11 @@ void prefill_memdb(int do_dmi)
 		md->location = xstrdup(bl);
 		md->name = xstrdup(dmi_getstring(&d->header, d->device_locator));
 	}
-	if (missed) { 
-		static int warned;
-		if (!warned) {
-			Eprintf("failed to prefill DIMM database from DMI data");
-			warned = 1;
+	if (!missed) {
+		static int db_rill_msg;
+		if (!db_rill_msg) {
+			Gprintf("Prefilled DIMM database from DMI data");
+			db_rill_msg = 1;
 		}
 	}
 }
openSUSE Build Service is sponsored by