Changeset 4877 for trunk/psLib/src/sys/psMemory.c
- Timestamp:
- Aug 25, 2005, 1:42:07 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psMemory.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.c
r4589 r4877 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.6 0$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 7-21 01:40:10$10 * @version $Revision: 1.61 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-08-25 23:42:07 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 109 109 psError(PS_ERR_MEMORY_CORRUPTION, false, 110 110 PS_ERRORTEXT_psMemory_MULTIPLE_FREE, 111 ptr->id, ptr->file, ptr->lineno, file, lineno);111 (unsigned long)ptr->id, ptr->file, ptr->lineno, file, lineno); 112 112 } 113 113 … … 138 138 psError(PS_ERR_MEMORY_CORRUPTION, true, 139 139 PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE, 140 m->id);140 (unsigned long)m->id); 141 141 return 1; 142 142 } … … 145 145 psError(PS_ERR_MEMORY_CORRUPTION, true, 146 146 PS_ERRORTEXT_psMemory_UNDERFLOW, 147 m->id);147 (unsigned long)m->id); 148 148 return 1; 149 149 } … … 151 151 psError(PS_ERR_MEMORY_CORRUPTION, true, 152 152 PS_ERRORTEXT_psMemory_OVERFLOW, 153 m->id);153 (unsigned long)m->id); 154 154 return 1; 155 155 } … … 390 390 if (checkMemBlock(ptr, __func__) != 0) { 391 391 memProblemCallback(ptr, file, lineno); 392 psAbort(file, "Realloc detected a memory corruption (id %l ld@ %s:%d).",393 ptr->id, ptr->file, ptr->lineno);392 psAbort(file, "Realloc detected a memory corruption (id %lu @ %s:%d).", 393 (unsigned long)ptr->id, ptr->file, ptr->lineno); 394 394 } 395 395 … … 444 444 445 445 psAbort(__func__,PS_ERRORTEXT_psMemory_MULTIPLE_FREE, 446 ptr->id, ptr->file, ptr->lineno, filename, lineno);446 (unsigned long)ptr->id, ptr->file, ptr->lineno, filename, lineno); 447 447 } 448 448 … … 481 481 } 482 482 483 fprintf(fd, " %20s:%-4d %l d\n", iter->file, (int)iter->lineno, (long)iter->id);483 fprintf(fd, " %20s:%-4d %lu\n", iter->file, (int)iter->lineno, (unsigned long)iter->id); 484 484 } 485 485 }
Note:
See TracChangeset
for help on using the changeset viewer.
