diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-10 14:13:05 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-10 14:13:05 +0100 |
commit | 6ae1fc396820cba2bf0f0c2c51e892fd9d78eaed (patch) | |
tree | f52ba2c82578dae107368cc54722b805ddb6528f | |
parent | c980335b5858746772cb7b9588ca709c5d2dfa23 (diff) |
Comment out malloc debug logs.
-rw-r--r-- | src/xmalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmalloc.c b/src/xmalloc.c index 2bb07d2..9850805 100644 --- a/src/xmalloc.c +++ b/src/xmalloc.c @@ -8,7 +8,7 @@ void *xmalloc(size_t size) void *ptr = malloc(size); if (ptr != NULL) { - log_debug("Allocated %zu bytes.\n", size); + //log_debug("Allocated %zu bytes.\n", size); return ptr; } else { log_error("Out of memory, exiting.\n"); @@ -21,7 +21,7 @@ void *xcalloc(size_t nmemb, size_t size) void *ptr = calloc(nmemb, size); if (ptr != NULL) { - log_debug("Allocated %zux%zu bytes.\n", nmemb, size); + //log_debug("Allocated %zux%zu bytes.\n", nmemb, size); return ptr; } else { log_error("Out of memory, exiting.\n"); @@ -34,7 +34,7 @@ void *xrealloc(void *ptr, size_t size) ptr = realloc(ptr, size); if (ptr != NULL) { - log_debug("Reallocated to %zu bytes.\n", size); + //log_debug("Reallocated to %zu bytes.\n", size); return ptr; } else { log_error("Out of memory, exiting.\n"); |