diff options
author | Burt P <pburt0@gmail.com> | 2019-12-27 18:39:46 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-12-27 22:16:36 -0800 |
commit | e7dd39f9d227c5507e3789b18c7385bd3ea3cb8c (patch) | |
tree | f9b0e8115d8a2ab67f1d14f957879531459cd426 /modules/devices/dmi_memory.c | |
parent | 2d626b13c6180a1b3319c4dc9da57b4649063daa (diff) |
fmt_opts param for pango/html/text formatting
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/dmi_memory.c')
-rw-r--r-- | modules/devices/dmi_memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/devices/dmi_memory.c b/modules/devices/dmi_memory.c index 19fafa80..86829216 100644 --- a/modules/devices/dmi_memory.c +++ b/modules/devices/dmi_memory.c @@ -787,7 +787,7 @@ gchar *memory_devices_get_info() { ); g_free(spd); moreinfo_add_with_prefix(tag_prefix, tag, details); /* moreinfo now owns *details */ - const gchar *mfgr = s->mfgr ? vendor_get_shortest_name(s->mfgr) : NULL; + gchar *mfgr = s->mfgr ? vendor_match_tag(s->mfgr, params.fmt_opts) : NULL; ret = h_strdup_cprintf("$!%s$%s=%s|%s|%s\n", ret, tag, @@ -796,6 +796,7 @@ gchar *memory_devices_get_info() { ); icons = h_strdup_cprintf("Icon$%s$=%s\n", icons, tag, mem_icon); g_free(size_str); + g_free(mfgr); } else { gchar *details = g_strdup_printf("[%s]\n" "%s=0x%"PRIx32", 0x%"PRIx32"\n" |