aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-06-25 21:37:42 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-06-26 17:49:50 -0700
commit2960ec7e4516a08b8e46305c6206a603969e3265 (patch)
treeb2a6236967078e515cc836f29c35375ad521b180
parent313754e4ed9cfd97afdcc2a95099fe704e4189ee (diff)
devices/dmi_memory.c: tweak for mfgr name
Signed-off-by: Burt P <pburt0@gmail.com>
-rw-r--r--modules/devices/dmi_memory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/devices/dmi_memory.c b/modules/devices/dmi_memory.c
index 47cf3b6e..279caaec 100644
--- a/modules/devices/dmi_memory.c
+++ b/modules/devices/dmi_memory.c
@@ -486,9 +486,10 @@ gchar *dmi_mem_socket_info_view1() {
_("Configured Voltage"), UNKIFNULL2(s->voltage_conf_str)
);
moreinfo_add_with_prefix(key_prefix, key, details); /* moreinfo now owns *details */
+ const gchar *mfgr = s->mfgr ? vendor_get_shortest_name(s->mfgr) : NULL;
ret = h_strdup_cprintf("$!%s$%s=%s|%s|%s\n",
ret,
- key, s->full_locator, UNKIFNULL2(s->partno), size_str, UNKIFNULL2(s->mfgr)
+ key, s->full_locator, UNKIFNULL2(s->partno), size_str, UNKIFNULL2(mfgr)
);
g_free(vendor_str);
g_free(size_str);