SHA256
1
0
forked from pool/mcelog
mcelog/mcelog_invert_prefill_db_warning.patch
Thomas Renninger 0959987313 Accepting request 357396 from home:trenn:branches:Base:System
- Update to latest version 1.29.
  Mostly little bug fixes.

- Update to version v124. Adds skylake CPU support and some bug fixes.

OBS-URL: https://build.opensuse.org/request/show/357396
OBS-URL: https://build.opensuse.org/package/show/Base:System/mcelog?expand=0&rev=53
2016-02-02 17:14:08 +00:00

26 lines
747 B
Diff

---
memdb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Index: mcelog-1.29/memdb.c
===================================================================
--- mcelog-1.29.orig/memdb.c 2016-01-20 18:33:20.000000000 +0100
+++ mcelog-1.29/memdb.c 2016-01-28 15:33:46.958564233 +0100
@@ -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;
}
}
}