Changeset 8627 for trunk/psLib/src/fits/psFitsTable.c
- Timestamp:
- Aug 25, 2006, 6:34:28 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsTable.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsTable.c
r8623 r8627 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-08-26 0 3:11:59$9 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-08-26 04:34:28 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 74 74 } 75 75 76 psTrace("psLib.fits",5,"Table size is %ix% i\n",numCols, numRows);76 psTrace("psLib.fits",5,"Table size is %ix%li\n",numCols, numRows); 77 77 // the row parameter in the proper range? 78 78 if (row < 0 || row >= numRows) { 79 79 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 80 _("Specified row, %d, is not valid for current table of % d rows."),81 row, numRows);80 _("Specified row, %d, is not valid for current table of %ld rows."), 81 row, numRows); 82 82 return NULL; 83 83 } … … 110 110 fits_read_col(fits->fd, FITSTYPE, col,row+1, \ 111 111 1, 1, NULL, &value, &anynul, &status); \ 112 psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat % i, Value = %g\n", \112 psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat %li, Value = %g\n", \ 113 113 col, name, typecode, repeat, (double)value); \ 114 114 psMetadataAdd(data,PS_LIST_TAIL, name, \ … … 144 144 fits_read_col(fits->fd, TSTRING, col,row+1, 145 145 1, 1, NULL, &value, &anynul, &status); 146 psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat % i, value = %s\n",146 psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat %li, value = %s\n", 147 147 col, name, typecode, repeat, value); 148 148 if (anynul == 0) { … … 387 387 388 388 for (int row = 0; row < numRows; row++) { 389 psTrace("psLib.fits",5,"Reading row %i of % i\n",row, numRows);389 psTrace("psLib.fits",5,"Reading row %i of %li\n",row, numRows); 390 390 table->data[row] = psFitsReadTableRow(fits,row); 391 391 table->n++; … … 507 507 // unsupported type -- treating as an error 508 508 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 509 "Unsupported data type (%d) for Metadata Item '%s' in row % d.",510 colItem->type, colItem->name, row);509 "Unsupported data type (%d) for Metadata Item '%s' in row %ld.", 510 colItem->type, colItem->name, i); 511 511 psFree(rowIter); 512 512 psFree(colSpecs); … … 620 620 char fitsErr[MAX_STRING_LENGTH]; 621 621 fits_get_errstatus(status, fitsErr); 622 psError(PS_ERR_LOCATION_INVALID, true, "Unable to create FITS table with % d columns and %d rows:",622 psError(PS_ERR_LOCATION_INVALID, true, "Unable to create FITS table with %ld columns and %ld rows: %s", 623 623 numColumns, table->n, fitsErr); 624 624 psFree(colSpecsIter); … … 709 709 char fitsErr[MAX_STRING_LENGTH]; 710 710 fits_get_errstatus(status, fitsErr); 711 psError(PS_ERR_LOCATION_INVALID, true, "Unable to write column % d of FITS table:",711 psError(PS_ERR_LOCATION_INVALID, true, "Unable to write column %ld of FITS table: %s", 712 712 colNum, fitsErr); 713 713 psFree(colSpecsIter);
Note:
See TracChangeset
for help on using the changeset viewer.
