summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunyan He <junyan.he@intel.com>2016-04-21 11:05:06 +0800
committerJunyan He <junyan.he@intel.com>2016-04-21 11:05:06 +0800
commitab87bcb8e1114a8a53e423ce040868e5b179919a (patch)
treebf6978e17d9ca417a6556735874ab1b3a3ed5afd
parentdf31596afcc0811cdb1198f7eac0f743eeb19bf9 (diff)
add init
-rw-r--r--libclapi/cl_alloc.c2
-rw-r--r--libclapi/cl_alloc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libclapi/cl_alloc.c b/libclapi/cl_alloc.c
index 2dabd3d5..b6d5dd7a 100644
--- a/libclapi/cl_alloc.c
+++ b/libclapi/cl_alloc.c
@@ -36,7 +36,7 @@ typedef struct _cl_alloc_log_item* cl_alloc_log_item;
static cl_alloc_log_item* cl_alloc_log_map[8];
static int cl_alloc_log_map_size[8];
-LOCAL void cl_alloc_log_init(void)
+LOCAL void cl_alloc_debug_init(void)
{
static int inited = 0;
int i;
diff --git a/libclapi/cl_alloc.h b/libclapi/cl_alloc.h
index 1121c44f..fde52f30 100644
--- a/libclapi/cl_alloc.h
+++ b/libclapi/cl_alloc.h
@@ -46,5 +46,5 @@ extern void cl_free(void *ptr, char* file, int line);
* allocation still unfreed
*/
extern void cl_alloc_report_unfreed(void);
-
+extern void cl_alloc_debug_init(void);
#endif /* __CL_ALLOC_H__ */