aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-03 11:28:30 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-03 11:28:30 +0000
commitf89d3c299263e08975255614285f5160eef3a9a4 (patch)
tree156fa1eff2ab7d7dcd70079ae9c41897981dfb3d /hardinfo2/util.c
parent5adc8bdbb1471821f912becbba86e4631a4a001a (diff)
Other platform fixes.
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r--hardinfo2/util.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c
index fe8c1678..3af626c7 100644
--- a/hardinfo2/util.c
+++ b/hardinfo2/util.c
@@ -401,7 +401,7 @@ static void module_register_methods(ShellModule *module)
g_hash_table_insert(__module_methods, method_name, method.function);
g_free(name);
- DEBUG("registering method %s", method_name);
+ DEBUG("Registered method: %s", method_name);
if (!(*(++methods)).name)
break;
@@ -417,6 +417,8 @@ gchar *module_call_method(gchar *method)
if (__module_methods == NULL) {
return NULL;
}
+
+ DEBUG("Calling method: %s", method);
function = g_hash_table_lookup(__module_methods, method);
return function ? g_strdup(function()) :
@@ -803,7 +805,8 @@ void tree_view_save_image(gchar *filename)
static gboolean __idle_free_do(gpointer ptr)
{
- DEBUG("collecting garbage: %p", ptr);
+ DEBUG("Collecting Garbage: %p", ptr);
+ DEBUG(" Data: %20s", (gchar*)ptr);
g_free(ptr);
@@ -852,13 +855,9 @@ void module_entry_reload(ShellModuleEntry *module_entry)
void module_entry_scan(ShellModuleEntry *module_entry)
{
- shell_status_update(idle_free(g_strdup_printf("Scanning: %s...", module_entry->name)));
-
if (module_entry->scan_func) {
module_entry->scan_func(FALSE);
}
-
- shell_status_update("Done.");
}
gchar *module_entry_function(ShellModuleEntry *module_entry)