From d3b9aa19f04e6be78afb8497e7808a3d42042bf2 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Thu, 26 Jan 2012 22:14:43 -0200 Subject: Better manage moreinfo hashes Have only one for the whole program and use per-module namespaces/prefixes so that each module can clear its own information easily. --- modules/devices/x86/processor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/devices/x86') diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c index e70d1374..2609720e 100644 --- a/modules/devices/x86/processor.c +++ b/modules/devices/x86/processor.c @@ -545,8 +545,9 @@ gchar *processor_get_info(GSList * processors) processor->cpu_mhz); hashkey = g_strdup_printf("CPU%d", processor->id); - g_hash_table_insert(moreinfo, hashkey, + moreinfo_add_with_prefix("DEV", hashkey, processor_get_detailed_info(processor)); + g_free(hashkey); } ret = g_strdup_printf("[$ShellParam$]\n" -- cgit v1.2.3