Commit c0edb2e0 authored by unknown's avatar unknown

ut0mem.c:

  Remove printf's that were accidentally pushed in the last push


innobase/ut/ut0mem.c:
  Remove printf's that were accidentally pushed in the last push
parent ce4973d6
...@@ -202,10 +202,7 @@ ut_realloc( ...@@ -202,10 +202,7 @@ ut_realloc(
ulint min_size; ulint min_size;
void* new_ptr; void* new_ptr;
printf("Calling realloc with size %lu\n", size);
if (ptr == NULL) { if (ptr == NULL) {
printf("ptr was NULL, calling malloc\n");
return(ut_malloc(size)); return(ut_malloc(size));
} }
...@@ -222,8 +219,6 @@ ut_realloc( ...@@ -222,8 +219,6 @@ ut_realloc(
old_size = block->size - sizeof(ut_mem_block_t); old_size = block->size - sizeof(ut_mem_block_t);
printf("Old size was %lu\n", old_size);
if (size < old_size) { if (size < old_size) {
min_size = size; min_size = size;
} else { } else {
...@@ -240,8 +235,6 @@ ut_realloc( ...@@ -240,8 +235,6 @@ ut_realloc(
/* Copy the old data from ptr */ /* Copy the old data from ptr */
ut_memcpy(new_ptr, ptr, min_size); ut_memcpy(new_ptr, ptr, min_size);
printf("Copying %lu bytes to new_ptr\n", min_size);
ut_free(ptr); ut_free(ptr);
return(new_ptr); return(new_ptr);
......
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