IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32177


Ignore:
Timestamp:
Aug 23, 2011, 10:27:43 AM (15 years ago)
Author:
Serge CHASTEL
Message:

Memory leaks are now displayed in expected 'log'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.c

    r32174 r32177  
    898898
    899899    // XXX move this elsewhere?
    900     fprintf (stderr, "set %d locks, cleared %d locks, retry on %d locks (memID %ld)\n", setLock, clearLock, retryLock, memid);
     900    if (fd != NULL) {
     901      fprintf (fd, "set %d locks, cleared %d locks, retry on %d locks (memID %ld)\n", setLock, clearLock, retryLock, memid);
     902    }
    901903
    902904    // make sure that the memblock list is free of corruption before we crawl
     
    929931      maxToDisplay=nleak;
    930932    }
    931     fprintf(stderr,"maxToDisplay: %d\n", maxToDisplay);
     933    if (fd != NULL) {
     934      fprintf(fd, "Number of leaks to display: %d\n", maxToDisplay);
     935    }
    932936    memBlock = memBlockBackup;
    933937
Note: See TracChangeset for help on using the changeset viewer.