Skip to content

Commit

Permalink
devices/dmi_memory: added placeholder strings to the ignore list
Browse files Browse the repository at this point in the history
  • Loading branch information
ocerman authored and lpereira committed Nov 1, 2021
1 parent edb7b0a commit 8c4336e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/devices/dmi_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ dmi_mem_socket *dmi_mem_socket_new(dmi_handle h) {
STR_IGNORE(s->voltage_conf_str, "Unknown");

s->partno = dmidecode_match("Part Number", &dtm, &h);
STR_IGNORE(s->partno, "PartNum0");
STR_IGNORE(s->partno, "PartNum1");
STR_IGNORE(s->partno, "PartNum2");
STR_IGNORE(s->partno, "PartNum3");
null_if_empty(&s->partno);

s->data_width = dmidecode_match("Data Width", &dtm, &h);
Expand All @@ -283,6 +287,10 @@ dmi_mem_socket *dmi_mem_socket_new(dmi_handle h) {

s->mfgr = dmidecode_match("Manufacturer", &dtm, &h);
STR_IGNORE(s->mfgr, unknown_mfgr_str);
STR_IGNORE(s->mfgr, "Manufacturer0");
STR_IGNORE(s->mfgr, "Manufacturer1");
STR_IGNORE(s->mfgr, "Manufacturer2");
STR_IGNORE(s->mfgr, "Manufacturer3");
STR_IGNORE(s->mfgr, "Unknown");
null_if_empty(&s->mfgr);

Expand Down

0 comments on commit 8c4336e

Please sign in to comment.