Take out excessive logging

This commit is contained in:
Ron Pedde 2003-11-23 18:14:03 +00:00
parent c7435c28fc
commit 572a27b9b5

View File

@ -142,10 +142,6 @@ int err_unlock_mutex(void) {
void *err_malloc(char *file, int line, size_t size) { void *err_malloc(char *file, int line, size_t size) {
ERR_LEAK *pnew; ERR_LEAK *pnew;
DPRINTF(ERR_DEBUG,"Mallocing %d bytes\n",size);
err_leakcheck();
DPRINTF(ERR_DEBUG,"---\n");
pnew=(ERR_LEAK*)malloc(sizeof(ERR_LEAK)); pnew=(ERR_LEAK*)malloc(sizeof(ERR_LEAK));
if(!pnew) if(!pnew)
log_err(1,"Error: cannot allocate leak struct\n"); log_err(1,"Error: cannot allocate leak struct\n");
@ -163,10 +159,6 @@ void *err_malloc(char *file, int line, size_t size) {
err_unlock_mutex(); err_unlock_mutex();
DPRINTF(ERR_DEBUG,"Malloced at %x\n",pnew->ptr);
err_leakcheck();
DPRINTF(ERR_DEBUG,"---\n");
return pnew->ptr; return pnew->ptr;
} }
@ -195,10 +187,6 @@ char *err_strdup(char *file, int line, const char *str) {
void err_free(char *file, int line, void *ptr) { void err_free(char *file, int line, void *ptr) {
ERR_LEAK *current,*last; ERR_LEAK *current,*last;
DPRINTF(ERR_DEBUG,"Freeing %x\n",ptr);
err_leakcheck();
DPRINTF(ERR_DEBUG,"---\n");
if(err_lock_mutex()) if(err_lock_mutex())
log_err(1,"Error: cannot lock error mutex\n"); log_err(1,"Error: cannot lock error mutex\n");
@ -219,10 +207,6 @@ void err_free(char *file, int line, void *ptr) {
} }
err_unlock_mutex(); err_unlock_mutex();
DPRINTF(ERR_DEBUG,"Freed\n");
err_leakcheck();
DPRINTF(ERR_DEBUG,"---\n");
} }
/* /*