1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-28 02:50:41 +03:00

more debug fixes

This commit is contained in:
Alasdair Kergon 2005-11-11 16:16:37 +00:00
parent bf9c60feb5
commit 5dd9b4656f
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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