From 4227ca9fb444a890147ac9b4ce65cfce21c4248b Mon Sep 17 00:00:00 2001 From: Suresh Kumar Narasimhaiah Date: Thu, 14 Mar 2013 22:09:37 +0530 Subject: [PATCH] Find modem from modems fix --- src/core_object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core_object.c b/src/core_object.c index 88c9f38..e38920c 100644 --- a/src/core_object.c +++ b/src/core_object.c @@ -105,7 +105,7 @@ static void _util_print_mapping_tbl_entry(object_mapping_table_t *tbl_entry) { GSList *co_list; - dbg("Table Entry: [0x%x]", tbl_entry); + dbg("Table Entry - HAL: [0x%x]", tbl_entry->hal); co_list = tbl_entry->object_type; if (co_list == NULL) { @@ -173,7 +173,7 @@ static object_mapping_table_t *_object_search_mapping_tbl_entry(GSList *mapping_ } } - return tbl_entry; + return NULL; } static object_mapping_table_t *_object_search_mapping_tbl_entry_by_type( @@ -784,8 +784,8 @@ void *tcore_object_add_mapping_tbl_entry(void *mapping_tbl, * to the Mapping Table. */ tbl_entry = _object_search_mapping_tbl_entry(mapping_tbl_list, hal); - if (tbl_entry == NULL) { + dbg("Creating New Table entry for HAL: [0x%x]", hal); /* * If there is NO previously added Table entry for the 'hal' then * new Table entry is created -- 2.7.4