From 5b34574df28589f727278cc6ca64bbb41ed8f272 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 11 Nov 2005 16:16:37 +0000 Subject: [PATCH] more debug fixes --- lib/.exported_symbols | 5 +++-- lib/libdevmapper.h | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/.exported_symbols b/lib/.exported_symbols index 7da1d7a..23c3f70 100644 --- a/lib/.exported_symbols +++ b/lib/.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/lib/libdevmapper.h b/lib/libdevmapper.h index f8c1525..a6c3db2 100644 --- a/lib/libdevmapper.h +++ b/lib/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 -- 2.43.5