Commit 4331e3b4 authored by Lucas Russo's avatar Lucas Russo

hal/hal_utils/dispatch_table.c: use new version of stringify function

The halutils_stringify_* family of functions changed
its interface. So, we update them here.
parent 3e946b50
......@@ -78,7 +78,7 @@ halutils_err_e disp_table_insert (disp_table_t *self, uint32_t key,
halutils_err_e disp_table_remove (disp_table_t *self, uint32_t key)
{
char *key_c = halutils_stringify_key (key);
char *key_c = halutils_stringify_hex_key (key);
ASSERT_ALLOC (key_c, err_key_c_alloc);
DBE_DEBUG (DBG_HAL_UTILS | DBG_LVL_TRACE,
......@@ -96,7 +96,7 @@ err_key_c_alloc:
void *disp_table_call (disp_table_t *self, uint32_t key, void *owner, void *args)
{
char *key_c = halutils_stringify_key (key);
char *key_c = halutils_stringify_hex_key (key);
ASSERT_ALLOC (key_c, err_key_c_alloc);
func_fp_wrapper_t *func_fp_wrapper = zhash_lookup (self->table_h, key_c);
ASSERT_ALLOC (func_fp_wrapper, err_func_p_wrapper_null);
......@@ -171,7 +171,7 @@ static halutils_err_e _disp_table_insert (disp_table_t *self, uint32_t key,
/* Initialize func_p_wrapper struct */
func_fp_wrapper->func_fp = func_fp;
char *key_c = halutils_stringify_key (key);
char *key_c = halutils_stringify_hex_key (key);
ASSERT_ALLOC (key_c, err_key_c_alloc);
int zerr = zhash_insert (self->table_h, key_c, func_fp_wrapper);
ASSERT_TEST(zerr == 0, "Could not insert item into dispatch table", err_insert_hash);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment