SHA256
1
0
forked from pool/mcelog
mcelog/mcelog_invert_prefill_db_warning.patch
Thomas Renninger 49d6db02db - Update to latest v120 git tag and name the version 1.20:
New supported CPUs:
     - Add model number for Broadwell-DE
     - Added Knights Landing (Xeon Phi) 
     - Add all current Atom cpuids
     - Support Broadwell-U
     - New manpages: mcelog.conf.5 and mcelog.triggers.5
  And quite some undocumented bugfixes, see git log for details

OBS-URL: https://build.opensuse.org/package/show/Base:System/mcelog?expand=0&rev=51
2015-06-15 16:24:28 +00:00

26 lines
716 B
Diff

---
memdb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Index: mcelog-1.20/memdb.c
===================================================================
--- mcelog-1.20.orig/memdb.c 2015-06-15 14:25:23.000000000 +0200
+++ mcelog-1.20/memdb.c 2015-06-15 15:15:25.925718586 +0200
@@ -422,11 +422,11 @@
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;
}
}
}