From 2960ec7e4516a08b8e46305c6206a603969e3265 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 25 Jun 2019 21:37:42 -0500 Subject: devices/dmi_memory.c: tweak for mfgr name Signed-off-by: Burt P --- modules/devices/dmi_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3