Changeset 329
- Timestamp:
- Mar 31, 2004, 12:25:38 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/src/Utils/memory.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/memory.c
r267 r329 76 76 fprintf(stderr, "\n"); 77 77 } else if (ptr->refCounter <= 0) { 78 psError(__func__, "Block %ld allocated at %s:%d freed more than once at %s:%d\n", 78 psError(__func__, PS_ERR_BADFREE, PS_NEW_ERROR, 79 "Block %ld allocated at %s:%d freed more than once at %s:%d\n", 79 80 ptr->id, ptr->file, ptr->lineno, file, lineno); 80 81 } else if (ptr->refCounter > 1) { 81 psError(__func__, "Block %ld allocated at %s:%d freed while still referenced at %s:%d\n", 82 psError(__func__, PS_ERR_BADFREE, PS_NEW_ERROR, 83 "Block %ld allocated at %s:%d freed while still referenced at %s:%d\n", 82 84 ptr->id, ptr->file, ptr->lineno, file, lineno); 83 85 } … … 192 194 if (m == NULL) { 193 195 if (!quiet) { 194 psError(__func__, "psMemCheckCorruption: NULL memory block\n"); 196 psError(__func__, PS_ERR_MEMORY_CORRUPTION, PS_NEW_ERROR, 197 "psMemCheckCorruption: NULL memory block\n"); 195 198 } 196 199 return(1); … … 199 202 if (!ALIGNED(m)) { 200 203 if (!quiet) { 201 psError(__func__, "psMemCheckCorruption: non-aligned memory block\n"); 204 psError(__func__, PS_ERR_MEMORY_CORRUPTION, PS_NEW_ERROR, 205 "psMemCheckCorruption: non-aligned memory block\n"); 202 206 } 203 207 return(1); … … 206 210 if (m->magic0 != P_PS_MEMMAGIC || m->magic != P_PS_MEMMAGIC) { 207 211 if (!quiet) { 208 psError(__func__, 212 psError(__func__, PS_ERR_MEMORY_CORRUPTION, PS_NEW_ERROR, 209 213 "psMemCheckCorruption: memory block %ld is corrupted\n", m->id); 210 214 }
Note:
See TracChangeset
for help on using the changeset viewer.
