diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2019-07-12 08:28:36 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2019-07-12 08:31:18 -0700 |
commit | 512535ff97694c4cf0a824a2a2c357b0b90a1353 (patch) | |
tree | 80d5b52df7662e5c68d5ae1faeb04f4d6c997cef /modules/devices/pci.c | |
parent | 0ad42047da7b8a11a07e73a75f9f415362eec867 (diff) |
Show links for vendors
Diffstat (limited to 'modules/devices/pci.c')
-rw-r--r-- | modules/devices/pci.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/modules/devices/pci.c b/modules/devices/pci.c index e1e02f23..eb9bce38 100644 --- a/modules/devices/pci.c +++ b/modules/devices/pci.c @@ -70,26 +70,8 @@ static gchar *_pci_dev(const pcid *p, gchar *icons) { product = UNKIFNULL_AC(p->device_id_str); sproduct = UNKIFNULL_AC(p->sub_device_id_str); -#define USE_HARDINFO_VENDOR_THING 1 - if (USE_HARDINFO_VENDOR_THING) { - const gchar *v_url = vendor_get_url(vendor); - const gchar *v_name = vendor_get_name(vendor); - if (v_url != NULL) { - v_str = g_strdup_printf("%s (%s)", v_name, v_url); - } else { - v_str = g_strdup(vendor); - } - v_url = vendor_get_url(svendor); - v_name = vendor_get_name(svendor); - if (v_url != NULL) { - sv_str = g_strdup_printf("%s (%s)", v_name, v_url); - } else { - sv_str = g_strdup(svendor); - } - } else { - v_str = g_strdup(vendor); - sv_str = g_strdup(svendor); - } + v_str = vendor_get_link(vendor); + sv_str = vendor_get_link(svendor); name = g_strdup_printf("%s %s", vendor, product); key = g_strdup_printf("PCI%04x:%02x:%02x.%01x", p->domain, p->bus, p->device, p->function); |