From 6f8fc6a5816b2d404ad41a8b84830006a5b473e2 Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 28 Jun 2019 23:18:37 -0500 Subject: Memory Devices: unkifnull() a couple types_str uses Signed-off-by: Burt P --- modules/devices/dmi_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/devices/dmi_memory.c b/modules/devices/dmi_memory.c index 8cb0395d..be89127e 100644 --- a/modules/devices/dmi_memory.c +++ b/modules/devices/dmi_memory.c @@ -524,7 +524,7 @@ gchar *memory_devices_get_info() { _("Error Correction Type"), UNKIFNULL2(a->ecc), _("Size (Present / Max)"), size_str, _("Devices (Populated / Sockets)"), a->devs_populated, a->devs, - _("Types Present"), a->ram_types, types_str + _("Types Present"), a->ram_types, UNKIFNULL2(types_str) ); moreinfo_add_with_prefix(key_prefix, key, details); /* moreinfo now owns *details */ ret = h_strdup_cprintf("$!%s$%s=%s|%s\n", @@ -646,7 +646,7 @@ gchar *memory_devices_get_info() { _("Serial Presence Detect (SPD) Summary"), _("Size"), size_str, _("Devices"), g_slist_length(mem->spd), - _("Types Present"), mem->spd_ram_types, types_str + _("Types Present"), mem->spd_ram_types, UNKIFNULL2(types_str) ); moreinfo_add_with_prefix(key_prefix, key, details); /* moreinfo now owns *details */ ret = h_strdup_cprintf("$!%s$%s=%s|%s\n", -- cgit v1.2.3