aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2009-04-19 10:01:20 -0300
committerLeandro Pereira <leandro@hardinfo.org>2009-04-19 10:01:20 -0300
commitab149c6b07e5e183a0ad4dec6c886f06df6d2efc (patch)
treeab903683a7f83193de945cff42d9a9a1f00df07c /hardinfo2/arch
parentb8ec48cc434da4c35e574cdd8d9c7465f101799c (diff)
Clean up CPU description on benchmark display
Diffstat (limited to 'hardinfo2/arch')
-rw-r--r--hardinfo2/arch/common/printers.h2
-rw-r--r--hardinfo2/arch/linux/common/filesystem.h2
-rw-r--r--hardinfo2/arch/linux/common/resources.h4
-rw-r--r--hardinfo2/arch/linux/common/storage.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/hardinfo2/arch/common/printers.h b/hardinfo2/arch/common/printers.h
index 2f221252..75b6e84a 100644
--- a/hardinfo2/arch/common/printers.h
+++ b/hardinfo2/arch/common/printers.h
@@ -234,7 +234,7 @@ __scan_printers(void)
} else {
if (temp) {
/* FIXME Do proper escaping */
- temp = g_strdup(strreplace(temp, "&=", ' '));
+ temp = g_strdup(strreplacechr(temp, "&=", ' '));
} else {
temp = g_strdup("Unknown");
}
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);