Changeset 8684 for trunk/stac/src/stacCheckMemory.c
- Timestamp:
- Aug 29, 2006, 1:20:21 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacCheckMemory.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacCheckMemory.c
r5745 r8684 10 10 { 11 11 psLogMsg("stac.memoryPrint", PS_LOG_INFO, 12 "Memory block % d:\n"12 "Memory block %lu:\n" 13 13 "\tFile %s, line %d, size %d\n" 14 "\tPosts: % x %x %x\n",14 "\tPosts: %p %p %p\n", 15 15 ptr->id, ptr->file, ptr->lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock, 16 16 *(void**)((int8_t *)(ptr + 1) + ptr->userMemorySize)); … … 25 25 { 26 26 psLogMsg("stac.checkMemory.corruption", PS_LOG_WARN, 27 "Memory corruption detected in memBlock % d\n"27 "Memory corruption detected in memBlock %lu\n" 28 28 "\tFile %s, line %d, size %d\n" 29 "\tPosts: % x %x %x\n",29 "\tPosts: %p %p %p\n", 30 30 ptr->id, file, lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock, 31 31 (ptr + 1 + ptr->userMemorySize)); … … 52 52 for (int i = 0; i < nLeaks; i++) { 53 53 psLogMsg("stac.checkMemory.leaks", PS_LOG_WARN, 54 "Memory leak detection: memBlock % d\n"54 "Memory leak detection: memBlock %lu\n" 55 55 "\tFile %s, line %d, size %d\n", 56 56 leaks[i]->id, leaks[i]->file, leaks[i]->lineno, leaks[i]->userMemorySize);
Note:
See TracChangeset
for help on using the changeset viewer.
