Changeset 8684
- Timestamp:
- Aug 29, 2006, 1:20:21 PM (20 years ago)
- Location:
- trunk/stac/src
- Files:
-
- 3 edited
-
stacCheckMemory.c (modified) (3 diffs)
-
stacRead.c (modified) (3 diffs)
-
sum.c (modified) (1 diff)
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); -
trunk/stac/src/stacRead.c
r6887 r8684 27 27 psFits *imageFile = psFitsOpen(filenames->data[i], "r"); 28 28 if (!imageFile) { 29 psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", filenames->data[i]);29 psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", (char *)filenames->data[i]); 30 30 exit(EXIT_FAILURE); 31 31 } … … 36 36 psImage *image = psFitsReadImage(imageFile, imageRegion, 0); 37 37 if (image == NULL) { 38 psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n", filenames->data[i]);38 psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n", (char *)filenames->data[i]); 39 39 exit(EXIT_FAILURE); 40 40 } … … 190 190 for (int i = 0; i < nFiles; i++) { 191 191 if (strlen(filenames->data[i]) > MAXCHAR - 4) { 192 psLogMsg("stac.read.maps",PS_LOG_ERROR,"Filename %s is too long.\n", filenames->data[i]);192 psLogMsg("stac.read.maps",PS_LOG_ERROR,"Filename %s is too long.\n",(char *)filenames->data[i]); 193 193 exit(EXIT_FAILURE); 194 194 } -
trunk/stac/src/sum.c
r6887 r8684 39 39 } else if (image->numCols != numCols || image->numRows != numRows) { 40 40 psError(PS_ERR_IO, true, "Input images have different dimensions. %s is %dx%d, but should be " 41 "%dx%d\n", inputNames->data[i], image->numCols, image->numRows, numCols, numRows);41 "%dx%d\n", (char *)inputNames->data[i], image->numCols, image->numRows, numCols, numRows); 42 42 return EXIT_FAILURE; 43 43 }
Note:
See TracChangeset
for help on using the changeset viewer.
