From: Alasdair Kergon Date: Fri, 11 Nov 2005 16:16:37 +0000 (+0000) Subject: more debug fixes X-Git-Tag: v2_02_91~4675 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=5dd9b4656fb685183c3effb94bd3fb08ccec5170;p=lvm2.git more debug fixes --- diff --git a/libdm/.exported_symbols b/libdm/.exported_symbols index 7da1d7ad5..23c3f708d 100644 --- a/libdm/.exported_symbols +++ b/libdm/.exported_symbols @@ -61,11 +61,12 @@ dm_tree_node_add_target_area dm_is_dm_major dm_mknodes dm_malloc_aux +dm_malloc_aux_debug dm_strdup dm_free_aux dm_realloc_aux -dm_dump_memory -dm_bounds_check +dm_dump_memory_debug +dm_bounds_check_debug dm_pool_create dm_pool_destroy dm_pool_alloc diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index f8c152538..a6c3db2fc 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -356,16 +356,16 @@ void dm_bounds_check_debug(void); # define dm_malloc(s) dm_malloc_aux_debug((s), __FILE__, __LINE__) # define dm_free(p) dm_free_aux(p) # define dm_realloc(p, s) dm_realloc_aux(p, s, __FILE__, __LINE__) -# define dm_dump_memory_debug() -# define dm_bounds_check_debug() +# define dm_dump_memory() dm_dump_memory_debug() +# define dm_bounds_check() dm_bounds_check_debug() #else # define dm_malloc(s) dm_malloc_aux((s), __FILE__, __LINE__) # define dm_free(p) free(p) # define dm_realloc(p, s) realloc(p, s) -# define dm_dump_memory() -# define dm_bounds_check() +# define dm_dump_memory() {} +# define dm_bounds_check() {} #endif