mcelog/mcelog_invert_prefill_db_warning.patch
Dirk Mueller e7441a5615 Accepting request 1173682 from home:trenn:branches:Base:System
- Update to version 198:
  * Remove obsolete on disk dimm database code
  * page.c: Disable gcc warnings
  * page.c: Remove obsolete comment
  * mcelog: Fix clang warnings
  * mcelog: mempage_replace missing initialization of mempage fields
  * mcelog: Add third model number for Arrowlake
- Refresh patches according to mainline:
M    add-f10h-support.patch
M    email.patch
M    fix_setgroups_missing_call.patch
M    mcelog_invert_prefill_db_warning.patch

OBS-URL: https://build.opensuse.org/request/show/1173682
OBS-URL: https://build.opensuse.org/package/show/Base:System/mcelog?expand=0&rev=111
2024-05-14 06:52:51 +00:00

26 lines
672 B
Diff

---
memdb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Index: mcelog-198/memdb.c
===================================================================
--- mcelog-198.orig/memdb.c
+++ mcelog-198/memdb.c
@@ -440,11 +440,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;
}
}
}