aboutsummaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
authorjamesbond <jamesbond>2014-07-28 17:01:25 +0000
committerLeandro Pereira <leandro@hardinfo.org>2015-10-25 15:49:33 -0200
commit6dd14fed6db519a2feb77a5b2b6e73ff03c4d043 (patch)
treea6784731925626be94d6ae0da328c30a8f0c4b53 /modules/devices.c
parentda77fa093e35ca15d3b405c41b30f3cbbbe66c26 (diff)
revert commit [d5afcb6851]; fix the real cause of missing RAM display (use moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet).
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/devices.c b/modules/devices.c
index a749aeaa..60eed920 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -68,7 +68,7 @@ void scan_spd(gboolean reload);
#endif
void scan_device_resources(gboolean reload);
-static gchar *hi_more_info(gchar *entry);
+gchar *hi_more_info(gchar *entry);
static ModuleEntry entries[] = {
{N_("Processor"), "processor.png", callback_processors, scan_processors, MODULE_FLAG_NONE},
@@ -175,7 +175,7 @@ gchar *get_pci_device_description(gchar *pci_id)
gchar *get_memory_total(void)
{
scan_memory(FALSE);
- return hi_more_info(N_("Total Memory"));
+ return moreinfo_lookup ("DEV:Total Memory"); //hi_more_info(N_("Total Memory"));
}
gchar *get_motherboard(void)
@@ -215,7 +215,7 @@ ShellModuleMethod *hi_exported_methods(void)
return m;
}
-static gchar *hi_more_info(gchar * entry)
+gchar *hi_more_info(gchar * entry)
{
gchar *info = moreinfo_lookup_with_prefix("DEV", entry);