aboutsummaryrefslogtreecommitdiff
path: root/modules/devices
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-12-27 21:55:53 -0600
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-12-27 22:16:36 -0800
commit9b8122e2c3378966641568f9c12ce10a6a9ec45c (patch)
treea18c397dc8f9333632904ce0eacbf1e9b78c0f07 /modules/devices
parentab7cbe4878b261b6719196939010371e3813dba4 (diff)
firmware: use vendor flag for vendor fields
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices')
-rw-r--r--modules/devices/firmware.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/devices/firmware.c b/modules/devices/firmware.c
index 71d1baa7..f3191503 100644
--- a/modules/devices/firmware.c
+++ b/modules/devices/firmware.c
@@ -163,9 +163,10 @@ gchar *fwupdmgr_get_devices_info() {
*next_nl = 0;
if (!isspace(*p) && *p != 0) {
if (gv && !has_vendor_field) {
- gchar *vstr = vendor_get_link_from_vendor(gv);
info_group_add_field(this_group,
- info_field(_("Vendor"), vstr, .free_value_on_flatten = TRUE) );
+ info_field(_("Vendor"), gv->name,
+ .value_has_vendor = TRUE,
+ .free_value_on_flatten = FALSE) );
}
g_strstrip(p);
this_group = info_add_group(info, g_strdup(p), info_field_last());
@@ -185,10 +186,10 @@ gchar *fwupdmgr_get_devices_info() {
has_vendor_field = TRUE;
const Vendor* v = vendor_match(col+1, NULL);
if (v) {
- gchar *vstr = vendor_get_link_from_vendor(v);
info_group_add_field(this_group,
- info_field(_("Vendor"), vstr,
- .free_value_on_flatten = TRUE) );
+ info_field(_("Vendor"), v->name,
+ .value_has_vendor = TRUE,
+ .free_value_on_flatten = FALSE) );
} else {
info_group_add_field(this_group,
info_field(find_translation(p), g_strdup(col+1),
@@ -223,9 +224,10 @@ gchar *fwupdmgr_get_devices_info() {
}
if (gv && !has_vendor_field) {
- gchar *vstr = vendor_get_link_from_vendor(gv);
info_group_add_field(this_group,
- info_field(_("Vendor"), vstr, .free_value_on_flatten = TRUE) );
+ info_field(_("Vendor"), gv->name,
+ .value_has_vendor = TRUE,
+ .free_value_on_flatten = FALSE) );
}
g_free(out);