diff options
Diffstat (limited to 'hardinfo2/arch/linux/common')
| -rw-r--r-- | hardinfo2/arch/linux/common/filesystem.h | 2 | ||||
| -rw-r--r-- | hardinfo2/arch/linux/common/resources.h | 4 | ||||
| -rw-r--r-- | hardinfo2/arch/linux/common/storage.h | 2 | 
3 files changed, 4 insertions, 4 deletions
| diff --git a/hardinfo2/arch/linux/common/filesystem.h b/hardinfo2/arch/linux/common/filesystem.h index 1eff0818..48cbbd51 100644 --- a/hardinfo2/arch/linux/common/filesystem.h +++ b/hardinfo2/arch/linux/common/filesystem.h @@ -77,7 +77,7 @@ scan_filesystems(void)  		    g_free(strhash);  		} -		strreplace(tmp[0], "#", '_'); +		strreplacechr(tmp[0], "#", '_');  		strhash = g_strdup_printf("[%s]\n"  					  "Filesystem=%s\n" diff --git a/hardinfo2/arch/linux/common/resources.h b/hardinfo2/arch/linux/common/resources.h index 20db65e9..acfbe377 100644 --- a/hardinfo2/arch/linux/common/resources.h +++ b/hardinfo2/arch/linux/common/resources.h @@ -38,12 +38,12 @@ static gchar *_resource_obtain_name(gchar *name)      if (g_regex_match(_regex_pci, name, 0, NULL)) {        temp = module_call_method_param("devices::getPCIDeviceDescription", name);        if (temp) { -          return temp; +          return g_strdup_printf("<b><small>PCI</small></b> %s", (gchar *)idle_free(temp));        }      } else if (g_regex_match(_regex_module, name, 0, NULL)) {        temp = module_call_method_param("computer::getKernelModuleDescription", name);        if (temp) { -          return temp; +          return g_strdup_printf("<b><small>Module</small></b> %s", (gchar *)idle_free(temp));        }      } diff --git a/hardinfo2/arch/linux/common/storage.h b/hardinfo2/arch/linux/common/storage.h index 06593a09..7caf1d96 100644 --- a/hardinfo2/arch/linux/common/storage.h +++ b/hardinfo2/arch/linux/common/storage.h @@ -239,7 +239,7 @@ __scan_ide_devices(void)                             }    	               } else if ((strstr(buf, "read") || strstr(buf, "write")) && strstr(buf, "kB/s")) {    	                   speed = g_strconcat(speed ? speed : "", -  	                                       strreplace(g_strstrip(buf), ":", '='), +  	                                       strreplacechr(g_strstrip(buf), ":", '='),    	                                       "\n", NULL);    	               } else if (strstr(buf, "Device seems to be")) {    	                   driver = g_strdup_printf("Driver=%s\n", strchr(buf, ':') + 1); | 
