Index: /trunk/psLib/src/astro/psTime.c
===================================================================
--- /trunk/psLib/src/astro/psTime.c	(revision 8626)
+++ /trunk/psLib/src/astro/psTime.c	(revision 8627)
@@ -10,6 +10,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.93 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:22 $
+ *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:27 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -80,8 +80,8 @@
 
 // Offset of year 0000 from epoch
-#define YEAR_0000_SEC                 -62125920000.0
+#define YEAR_0000_SEC                 -62125920000
 
 // Offset of year 9999 from epoch
-#define YEAR_9999_SEC                 253202544000.0
+#define YEAR_9999_SEC                 253202544000
 
 /** Static function prototypes */
@@ -299,5 +299,5 @@
     if(tablesFrom->n != numTables) {
         p_psMemAllocatePersistent(initialPersistence);
-        psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Incorrect vector size. Size: %d, Expected %d."), tablesFrom->n, numTables);
+        psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Incorrect vector size. Size: %ld, Expected %d."), tablesFrom->n, numTables);
         psFree(tablesFrom);
         return false;
@@ -316,5 +316,5 @@
     if(tablesTo->n != numTables) {
         p_psMemAllocatePersistent(initialPersistence);
-        psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Incorrect vector size. Size: %d, Expected %d."), tablesTo->n, numTables);
+        psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Incorrect vector size. Size: %ld, Expected %d."), tablesTo->n, numTables);
         psFree(tablesFrom);
         psFree(tablesTo);
@@ -335,5 +335,5 @@
     if(tablesIndex->n != numTables) {
         p_psMemAllocatePersistent(initialPersistence);
-        psError(PS_ERR_BAD_PARAMETER_VALUE,true,_("Incorrect vector size. Size: %d, Expected %d."),tablesIndex->n,numTables);
+        psError(PS_ERR_BAD_PARAMETER_VALUE,true,_("Incorrect vector size. Size: %ld, Expected %d."),tablesIndex->n,numTables);
         psFree(tablesFrom);
         psFree(tablesTo);
@@ -1357,5 +1357,5 @@
 
     // Check valid year range
-    PS_ASSERT_LONG_WITHIN_RANGE(time->sec,YEAR_0000_SEC,YEAR_9999_SEC,NULL)
+    PS_ASSERT_S64_WITHIN_RANGE(time->sec, (psS64)YEAR_0000_SEC, (psS64)YEAR_9999_SEC, NULL);
 
     // Allocate temp strings
@@ -1727,10 +1727,10 @@
     // Create output time
     sec = delta + (psF64)tempTime->sec + (psF64)tempTime->nsec/1e9;
-    PS_ASSERT_LONG_WITHIN_RANGE((psS64)sec,0,PS_MAX_S64,outTime);
+    PS_ASSERT_S64_WITHIN_RANGE((psS64)sec, (psS64)0, PS_MAX_S64, NULL);
     outTime->sec = (psS64)sec;
     outTime->nsec = (psU32)((sec - (psF64)outTime->sec)*1e9);
 
     // Error check
-    PS_ASSERT_INT_WITHIN_RANGE(outTime->nsec,0,(psU32)((1e9)-1),outTime);
+    PS_ASSERT_INT_WITHIN_RANGE(outTime->nsec,0,(psU32)((1e9)-1), NULL);
 
     // Convert result to same time type as input
Index: /trunk/psLib/src/db/psDB.c
===================================================================
--- /trunk/psLib/src/db/psDB.c	(revision 8626)
+++ /trunk/psLib/src/db/psDB.c	(revision 8627)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.87 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-26 00:32:39 $
+ *  @version $Revision: 1.88 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
@@ -157,5 +157,5 @@
     if (!psDBExplicitTrans(dbh, false)) {
         psError(PS_ERR_UNKNOWN, true,
-                "failed to set transaction type", mysql_error(mysql));
+                "failed to set transaction type. Error: %s", mysql_error(mysql));
 
         mysql_close(mysql);
@@ -1103,10 +1103,10 @@
             // convert NaNs to NULL and set the buffer_length for strings
 
-            if ((char *)item->data.V) {
+            if (item->data.str) {
                 // will handle the case of "" as a NULL database value
-                bind[i].buffer_length = (unsigned long)strlen((char *)item->data.V);
+                bind[i].buffer_length = (unsigned long)strlen(item->data.str);
                 bind[i].length  = &bind[i].buffer_length;
                 bind[i].buffer  = psStringCopy(item->data.V);
-                bind[i].is_null = *(char *)item->data.V == '\0'
+                bind[i].is_null = *item->data.str == '\0'
                                   ? (my_bool *)&isNull
                                   : NULL;
@@ -1124,5 +1124,5 @@
             // make a copy of the psTime so we don't modify user data when we
             // try to do the conversion
-            if ((char *)item->data.V) {
+            if (item->data.str) {
                 psTime *time = (psTime *)item->data.V;
                 struct tm *tmTime = psTimeToTM(time);
@@ -1252,5 +1252,5 @@
         } else if (item->type == PS_DATA_STRING) {
             // + column name + _ + varchar( + length + )
-            psStringAppend(&query, "%s VARCHAR(%s)", item->name, (char *)item->data.V);
+            psStringAppend(&query, "%s VARCHAR(%s)", item->name, item->data.str);
         } else {
             psError(PS_ERR_BAD_PARAMETER_TYPE, true,
@@ -1634,5 +1634,5 @@
         // + column name + _ + like + _ + ' + value + '
         // check for NULL and empty ("") strings
-        if (item->data.V == NULL || *(char *)item->data.V == '\0') {
+        if (item->data.V == NULL || *item->data.str == '\0') {
             psStringAppend(&query, "%s IS NULL", item->name);
         } else {
@@ -1642,7 +1642,7 @@
                 // very large TEXT columns that really shouldn't be
                 // used in a where clause...
-                psStringAppend(&query, "%s LIKE '%s'", item->name, (char *)item->data.V);
+                psStringAppend(&query, "%s LIKE '%s'", item->name, item->data.str);
             } else {
-                psStringAppend(&query, "%s = '%s'", item->name, (char *)item->data.V);
+                psStringAppend(&query, "%s = '%s'", item->name, item->data.str);
             }
         }
Index: /trunk/psLib/src/fits/psFitsImage.c
===================================================================
--- /trunk/psLib/src/fits/psFitsImage.c	(revision 8626)
+++ /trunk/psLib/src/fits/psFitsImage.c	(revision 8627)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-17 22:15:17 $
+ *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -450,6 +450,6 @@
     if (z >= nAxes[2]) {
         psError(PS_ERR_BAD_PARAMETER_SIZE, true,
-                _("Current FITS HDU has %d z-planes, but z-plane %d was specified."),
-                nAxes[2],z);
+                _("Current FITS HDU has %ld z-planes, but z-plane %d was specified."),
+                nAxes[2], z);
         return false;
     }
@@ -472,5 +472,5 @@
             lastPixel[1] < 1 || lastPixel[1] > nAxes[1]) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                "Input image [size of %ix%i] at position (%i,%i) does not all lay in the %ix%i FITS image.",
+                "Input image [size of %ix%i] at position (%i,%i) does not all lay in the %lix%li FITS image.",
                 numCols, numRows,
                 x0, y0,
Index: /trunk/psLib/src/fits/psFitsTable.c
===================================================================
--- /trunk/psLib/src/fits/psFitsTable.c	(revision 8626)
+++ /trunk/psLib/src/fits/psFitsTable.c	(revision 8627)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-26 03:11:59 $
+ *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -74,10 +74,10 @@
     }
 
-    psTrace("psLib.fits",5,"Table size is %ix%i\n",numCols, numRows);
+    psTrace("psLib.fits",5,"Table size is %ix%li\n",numCols, numRows);
     // the row parameter in the proper range?
     if (row < 0 || row >= numRows) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                _("Specified row, %d, is not valid for current table of %d rows."),
-                row,numRows);
+                _("Specified row, %d, is not valid for current table of %ld rows."),
+                row, numRows);
         return NULL;
     }
@@ -110,5 +110,5 @@
                     fits_read_col(fits->fd, FITSTYPE, col,row+1, \
                                   1, 1, NULL, &value, &anynul, &status); \
-                    psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat %i, Value = %g\n", \
+                    psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat %li, Value = %g\n", \
                             col, name, typecode, repeat, (double)value); \
                     psMetadataAdd(data,PS_LIST_TAIL, name, \
@@ -144,5 +144,5 @@
                     fits_read_col(fits->fd, TSTRING, col,row+1,
                                   1, 1, NULL, &value, &anynul, &status);
-                    psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat %i, value = %s\n",
+                    psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat %li, value = %s\n",
                             col, name, typecode, repeat, value);
                     if (anynul == 0) {
@@ -387,5 +387,5 @@
 
     for (int row = 0; row < numRows; row++) {
-        psTrace("psLib.fits",5,"Reading row %i of %i\n",row, numRows);
+        psTrace("psLib.fits",5,"Reading row %i of %li\n",row, numRows);
         table->data[row] = psFitsReadTableRow(fits,row);
         table->n++;
@@ -507,6 +507,6 @@
                 // unsupported type -- treating as an error
                 psError(PS_ERR_BAD_PARAMETER_TYPE, true,
-                        "Unsupported data type (%d) for Metadata Item '%s' in row %d.",
-                        colItem->type, colItem->name, row);
+                        "Unsupported data type (%d) for Metadata Item '%s' in row %ld.",
+                        colItem->type, colItem->name, i);
                 psFree(rowIter);
                 psFree(colSpecs);
@@ -620,5 +620,5 @@
         char fitsErr[MAX_STRING_LENGTH];
         fits_get_errstatus(status, fitsErr);
-        psError(PS_ERR_LOCATION_INVALID, true, "Unable to create FITS table with %d columns and %d rows:",
+        psError(PS_ERR_LOCATION_INVALID, true, "Unable to create FITS table with %ld columns and %ld rows: %s",
                 numColumns, table->n, fitsErr);
         psFree(colSpecsIter);
@@ -709,5 +709,5 @@
             char fitsErr[MAX_STRING_LENGTH];
             fits_get_errstatus(status, fitsErr);
-            psError(PS_ERR_LOCATION_INVALID, true, "Unable to write column %d of FITS table:",
+            psError(PS_ERR_LOCATION_INVALID, true, "Unable to write column %ld of FITS table: %s",
                     colNum, fitsErr);
             psFree(colSpecsIter);
Index: /trunk/psLib/src/imageops/psImagePixelExtract.c
===================================================================
--- /trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 8626)
+++ /trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 8627)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -790,5 +790,5 @@
     if (radii->n < 2) {
         psError(PS_ERR_BAD_PARAMETER_SIZE, true,
-                _("Input radii vector size, %d, can not be less than 2."),
+                _("Input radii vector size, %ld, can not be less than 2."),
                 radii->n);
         psFree(out);
Index: /trunk/psLib/src/imageops/psImageStats.c
===================================================================
--- /trunk/psLib/src/imageops/psImageStats.c	(revision 8626)
+++ /trunk/psLib/src/imageops/psImageStats.c	(revision 8627)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.99 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.100 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -592,9 +592,9 @@
         return -1;
     }/* else if (col0 == col1 && row0 == row1) {
-                                            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                                                    "Invalid psRegion specified.  Region contains only 1 pixel.\n");
-                                            return -1;
-                                        }
-                                    */
+                                                psError(PS_ERR_BAD_PARAMETER_VALUE, true,
+                                                        "Invalid psRegion specified.  Region contains only 1 pixel.\n");
+                                                return -1;
+                                            }
+                                        */
     x0 = col0;
     x1 = col1;
@@ -631,6 +631,8 @@
     case PS_TYPE_C64:
     default:
+        // XXX this should include the mask type (as a string)
         psError(PS_ERR_BAD_PARAMETER_TYPE, true,
-                _("Input psImage mask type, %s, is not the supported mask datatype of %s."), type, PS_TYPE_U8);
+                _("Input psImage mask type is not a supported mask datatype"));
+
         return -1;
     }
Index: /trunk/psLib/src/math/psBinaryOp.c
===================================================================
--- /trunk/psLib/src/math/psBinaryOp.c	(revision 8626)
+++ /trunk/psLib/src/math/psBinaryOp.c	(revision 8627)
@@ -30,6 +30,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -107,5 +107,5 @@
     long n2 = ((psVector*)IN2)->n; \
     if (n1 != n2) { \
-        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n1, n2); \
+        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld.  Number of elements must match."), n1, n2); \
         if (OUT != IN1 && OUT != IN2) { \
             psFree(OUT); \
@@ -129,5 +129,5 @@
     if (((psVector*)IN1)->type.dimen == PS_DIMEN_VECTOR) { /* Regular vectors */ \
         if (n1 != numRows2) { \
-            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n1, numRows2); \
+            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld.  Number of elements must match."), n1, numRows2); \
             if (OUT != IN1 && OUT != IN2) { \
                 psFree(OUT); \
@@ -146,5 +146,5 @@
     } else {  /* Transposed vectors */ \
         if (n1 != numCols2) { \
-            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n1, numCols2); \
+            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld.  Number of elements must match."), n1, numCols2); \
             if (OUT != IN1 && OUT != IN2) { \
                 psFree(OUT); \
@@ -187,5 +187,5 @@
     if (((psVector*)IN2)->type.dimen == PS_DIMEN_VECTOR) { /* Regular vectors */ \
         if (n2 != numRows1) { \
-            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n2, numRows1); \
+            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld.  Number of elements must match."), n2, numRows1); \
             if (OUT != IN1 && OUT != IN2) { \
                 psFree(OUT); \
@@ -204,5 +204,5 @@
     } else {  /* Transposed vectors */ \
         if (n2 != numCols1) { \
-            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n2, numCols1); \
+            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld.  Number of elements must match."), n2, numCols1); \
             if (OUT != IN1) { \
                 psFree(OUT); \
@@ -229,5 +229,5 @@
     long numCols2 = ((psImage*)IN2)->numCols; \
     if (numRows1 != numRows2 || numCols1 != numCols2) { \
-        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %dx%d vs %dx%d."), \
+        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %ldx%ld vs %ldx%ld."), \
                 numCols1, numRows1, numCols2, numRows2); \
         if (OUT != IN1 && OUT != IN2) { \
@@ -360,5 +360,5 @@
     } else {                                                                                                 \
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,                                                            \
-                "Types (%x,%x) are not appropriate for logical OR.\n", IN1->type, IN2->type);                \
+                "Types (%x,%x) are not appropriate for logical OR.\n", IN1->type, IN2->type);               \
         return NULL;                                                                                         \
     }                                                                                                        \
Index: /trunk/psLib/src/math/psMathUtils.c
===================================================================
--- /trunk/psLib/src/math/psMathUtils.c	(revision 8626)
+++ /trunk/psLib/src/math/psMathUtils.c	(revision 8627)
@@ -3,6 +3,6 @@
  *  This file contains standard math routines.
  *
- *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-09 02:26:44 $
+ *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -58,10 +58,10 @@
     long max; \
     long mid; \
-    psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__); \
+    psTrace("psLib.math", 4, "---- () begin ----\n"); \
     /* psTrace("psLib.math", 6, "Determining the bin for: %f\n", x); */\
     if (value < bounds[0]) { \
         psLogMsg(__func__, PS_LOG_WARN, \
                  "vectorBinDisect%s(): ordinate %f is outside vector range (%f - %f).", \
-                 #TYPE, value, bounds[0], bounds[numBins-1]); \
+                 #TYPE, (double)value, (double)bounds[0], (double)bounds[numBins-1]); \
         return(-2); \
     } \
@@ -69,5 +69,5 @@
         psLogMsg(__func__, PS_LOG_WARN, \
                  "vectorBinDisect%s(): ordinate %f is outside vector range (%f - %f).", \
-                 #TYPE, value, bounds[0], bounds[numBins-1]); \
+                 #TYPE, (double)value, (double)bounds[0], (double)bounds[numBins-1]); \
         return(-1); \
     } \
@@ -79,5 +79,5 @@
         \
         if (value == bounds[mid]) { \
-            psTrace("psLib.math", 4, "---- %s(%d) end (1) ----\n", __func__, mid); \
+            psTrace("psLib.math", 4, "---- %s(%ld) end (1) ----\n", __func__, mid); \
             return(mid); \
         } else if (value < bounds[mid]) { \
@@ -88,5 +88,5 @@
         mid = ((max+1)+min)/2; \
     } \
-    psTrace("psLib.math", 4, "---- %s(%d) end (2) ----\n", __func__, min); \
+    psTrace("psLib.math", 4, "---- %s(%ld) end (2) ----\n", __func__, min); \
     return(min); \
 }
Index: /trunk/psLib/src/math/psMatrix.c
===================================================================
--- /trunk/psLib/src/math/psMatrix.c	(revision 8626)
+++ /trunk/psLib/src/math/psMatrix.c	(revision 8627)
@@ -21,6 +21,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-09 02:26:44 $
+ *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -675,5 +675,5 @@
         if (outVector->n != inImage->numRows) {
             psError(PS_ERR_BAD_PARAMETER_SIZE, true,
-                    "Image and vector sizes differ: (%d vs %d).",
+                    "Image and vector sizes differ: (%d vs %ld).",
                     inImage->numRows, outVector->n);
             psMatrixToVector_EXIT;
@@ -691,5 +691,5 @@
         if (outVector->n != inImage->numCols) {
             psError(PS_ERR_BAD_PARAMETER_SIZE, true,
-                    "Image and vector sizes differ: (%d vs %d).",
+                    "Image and vector sizes differ: (%d vs %ld).",
                     inImage->numCols, outVector->n);
             psMatrixToVector_EXIT;
@@ -727,5 +727,5 @@
         } else if (outImage->numRows != inVector->n) {
             psError(PS_ERR_BAD_PARAMETER_SIZE, true,
-                    "Image and vector sizes differ: (%d vs %d).",
+                    "Image and vector sizes differ: (%d vs %ld).",
                     outImage->numRows, inVector->n);
             VECTORTOMATRIX_CLEANUP;
@@ -746,5 +746,5 @@
         } else if (outImage->numCols != inVector->n) {
             psError(PS_ERR_BAD_PARAMETER_SIZE, true,
-                    "Image and vector sizes differ: (%d vs %d).",
+                    "Image and vector sizes differ: (%d vs %ld).",
                     outImage->numCols, inVector->n);
             VECTORTOMATRIX_CLEANUP;
Index: /trunk/psLib/src/math/psMinimizeLMM.c
===================================================================
--- /trunk/psLib/src/math/psMinimizeLMM.c	(revision 8626)
+++ /trunk/psLib/src/math/psMinimizeLMM.c	(revision 8627)
@@ -10,6 +10,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-09 02:26:44 $
+ *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -181,15 +181,15 @@
     psF64 rcF64 = p_psMinLM_SetABX(alpha, beta, params, paramMask, x, y, dy, func);
     if (isnan(rcF64)) {
-        psTrace (__func__, 5, "p_psMinLM_SetABX() returned a NAN.\n");
+        psTrace ("psLib.math", 5, "p_psMinLM_SetABX() returned a NAN.\n");
         rc = false;
     }
-    psTrace("psLib.math", 5, "p_psMinLM_SetABX() was succesful\n", __func__);
+    psTrace("psLib.math", 5, "p_psMinLM_SetABX() was succesful\n");
 
     psBool rcBool = p_psMinLM_GuessABP(Alpha, delta, Params, alpha, beta, params, paramMask, NULL, NULL, NULL, 0.0);
     if (rcBool == false) {
-        psTrace (__func__, 5, "p_psMinLM_GuessABP() returned FALSE.\n");
+        psTrace ("psLib.math", 5, "p_psMinLM_GuessABP() returned FALSE.\n");
         rc = false;
     }
-    psTrace("psLib.math", 5, "p_psMinLM_GuessABP() was succesful\n", __func__);
+    psTrace("psLib.math", 5, "p_psMinLM_GuessABP() was succesful\n");
 
     psFree(alpha);
@@ -200,5 +200,5 @@
         psFree(dy);
     }
-    psTrace("psLib.math", 3, "---- %s() end ----\n", __func__);
+    psTrace("psLib.math", 3, "---- end ----\n");
     return(rc);
 }
@@ -417,5 +417,5 @@
         psTrace("psLib.math", 6, "The current Param vector: \n");
         for (psS32 i = 0 ; i < Params->n ; i++) {
-            psTrace("psLib.math", 6, "Params[%d] is %f\n", Params->data.F32[i]);
+            psTrace("psLib.math", 6, "Params[%d] is %f\n", i, Params->data.F32[i]);
         }
     }
@@ -447,5 +447,5 @@
                 psTrace("psLib.math", 6, "The current Param vector: \n");
                 for (psS32 i = 0 ; i < Params->n ; i++) {
-                    psTrace("psLib.math", 6, "Params[%d] is %f\n", Params->data.F32[i]);
+                    psTrace("psLib.math", 6, "Params[%d] is %f\n", i, Params->data.F32[i]);
                 }
             }
Index: /trunk/psLib/src/math/psMinimizePolyFit.c
===================================================================
--- /trunk/psLib/src/math/psMinimizePolyFit.c	(revision 8626)
+++ /trunk/psLib/src/math/psMinimizePolyFit.c	(revision 8627)
@@ -10,6 +10,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-22 15:01:12 $
+ *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -816,5 +816,5 @@
     //
     for (psS32 N = 0; N < stats->clipIter; N++) {
-        psTrace("psLib.math", 6, "Loop iteration %d.  Calling psVectorFitPolynomial1D()\n");
+        psTrace("psLib.math", 6, "Loop iteration %d.  Calling psVectorFitPolynomial1D()\n", N);
         psS32 Nkeep = 0;
         if (psTraceGetLevel(__func__) >= 6) {
@@ -894,5 +894,5 @@
         // since the polynomial fit won't change.
         //
-        psTrace("psLib.math", 6, "keeping %d of %d pts for fit\n", Nkeep, x->n);
+        psTrace("psLib.math", 6, "keeping %d of %ld pts for fit\n", Nkeep, x->n);
         psFree(fit);
     }
@@ -1250,5 +1250,5 @@
 
     for (psS32 N = 0; N < stats->clipIter; N++) {
-        psTrace("psLib.math", 6, "Loop iteration %d.  Calling psVectorFitPolynomial1D()\n");
+        psTrace("psLib.math", 6, "Loop iteration %d.  Calling psVectorFitPolynomial1D()\n", N);
         psS32 Nkeep = 0;
         if (psTraceGetLevel(__func__) >= 6) {
@@ -1331,5 +1331,5 @@
         }
 
-        psTrace("psLib.math", 6, "keeping %d of %d pts for fit\n", Nkeep, x->n);
+        psTrace("psLib.math", 6, "keeping %d of %ld pts for fit\n", Nkeep, x->n);
         psFree(fit);
     }
@@ -1770,5 +1770,5 @@
 
     for (psS32 N = 0; N < stats->clipIter; N++) {
-        psTrace("psLib.math", 6, "Loop iteration %d.  Calling psVectorFitPolynomial1D()\n");
+        psTrace("psLib.math", 6, "Loop iteration %d.  Calling psVectorFitPolynomial1D()\n", N);
         psS32 Nkeep = 0;
         if (psTraceGetLevel(__func__) >= 6) {
@@ -1851,5 +1851,5 @@
         }
 
-        psTrace("psLib.math", 6, "keeping %d of %d pts for fit\n", Nkeep, x->n);
+        psTrace("psLib.math", 6, "keeping %d of %ld pts for fit\n", Nkeep, x->n);
         psFree(fit);
     }
@@ -2338,5 +2338,5 @@
 
     for (psS32 N = 0; N < stats->clipIter; N++) {
-        psTrace("psLib.math", 6, "Loop iteration %d.  Calling psVectorFitPolynomial4D()\n");
+        psTrace("psLib.math", 6, "Loop iteration %d.  Calling psVectorFitPolynomial4D()\n", N);
         psS32 Nkeep = 0;
         if (psTraceGetLevel(__func__) >= 6) {
@@ -2420,5 +2420,5 @@
         }
 
-        psTrace("psLib.math", 6, "keeping %d of %d pts for fit\n", Nkeep, x->n);
+        psTrace("psLib.math", 6, "keeping %d of %ld pts for fit\n", Nkeep, x->n);
         psFree (fit);
     }
Index: /trunk/psLib/src/math/psPolynomialUtils.c
===================================================================
--- /trunk/psLib/src/math/psPolynomialUtils.c	(revision 8626)
+++ /trunk/psLib/src/math/psPolynomialUtils.c	(revision 8627)
@@ -105,5 +105,5 @@
         }
 
-        psTrace (__func__, 4, "keeping %d of %d pts for fit\n",
+        psTrace (__func__, 4, "keeping %d of %ld pts for fit\n",
                  Nkeep, x->n);
 
Index: /trunk/psLib/src/math/psSparse.c
===================================================================
--- /trunk/psLib/src/math/psSparse.c	(revision 8626)
+++ /trunk/psLib/src/math/psSparse.c	(revision 8627)
@@ -62,5 +62,5 @@
 
     if (i < j) {
-        psLogMsg(__func__, PS_LOG_WARN, "i=%ld, j=%ld refers to a sub-diagonal element; values switched.\n");
+        psLogMsg(__func__, PS_LOG_WARN, "i=%d, j=%d refers to a sub-diagonal element; values switched.\n", i, j);
         int temp = i;
         i = j;
Index: /trunk/psLib/src/math/psSpline.c
===================================================================
--- /trunk/psLib/src/math/psSpline.c	(revision 8626)
+++ /trunk/psLib/src/math/psSpline.c	(revision 8627)
@@ -6,6 +6,6 @@
 *  This file contains the routines that allocate, free, and evaluate splines.
 *
-*  @version $Revision: 1.152 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-08-09 02:26:44 $
+*  @version $Revision: 1.153 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-08-26 04:34:28 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -213,5 +213,5 @@
     PS_ASSERT_VECTOR_NON_NULL(y, NULL);
     PS_ASSERT_VECTOR_TYPE_F32_OR_F64(y, NULL);
-    PS_ASSERT_INT_LARGER_THAN_OR_EQUAL(y->n, 2, NULL);
+    PS_ASSERT_LONG_LARGER_THAN_OR_EQUAL(y->n, (long)2, NULL);
     psS32 numSplines = (y->n)-1;
     psTrace("psLib.math", 5, "numSplines is %d\n", numSplines);
Index: /trunk/psLib/src/math/psStats.c
===================================================================
--- /trunk/psLib/src/math/psStats.c	(revision 8626)
+++ /trunk/psLib/src/math/psStats.c	(revision 8627)
@@ -16,6 +16,6 @@
  * use ->min and ->max (PS_STAT_USE_RANGE)
  *
- *  @version $Revision: 1.184 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-09 02:26:44 $
+ *  @version $Revision: 1.185 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -665,10 +665,10 @@
     if (count == 0) {
         stats->sampleStdev = NAN;
-        psLogMsg(__func__, PS_LOG_WARN, "WARNING: vectorSampleStdev(): no valid psVector elements (%d).  Setting stats->sampleStdev = NAN.\n", count);
+        psLogMsg(__func__, PS_LOG_WARN, "WARNING: vectorSampleStdev(): no valid psVector elements (%ld).  Setting stats->sampleStdev = NAN.\n", count);
         return false;
     }
     if (count == 1) {
         stats->sampleStdev = 0.0;
-        psLogMsg(__func__, PS_LOG_WARN, "WARNING: vectorSampleStdev(): only one valid psVector elements (%d).  Setting stats->sampleStdev = 0.0.\n", count);
+        psLogMsg(__func__, PS_LOG_WARN, "WARNING: vectorSampleStdev(): only one valid psVector elements (%ld).  Setting stats->sampleStdev = 0.0.\n", count);
         return false;
     }
@@ -713,7 +713,7 @@
 
     // Ensure that stats->clipSigma is within the proper range.
-    PS_ASSERT_INT_WITHIN_RANGE(stats->clipSigma,
-                               PS_CLIPPED_SIGMA_LB,
-                               PS_CLIPPED_SIGMA_UB, -1);
+    PS_ASSERT_FLOAT_WITHIN_RANGE(stats->clipSigma,
+                                 PS_CLIPPED_SIGMA_LB,
+                                 PS_CLIPPED_SIGMA_UB, -1);
 
     // Allocate a psStats structure for calculating the mean, median, and
@@ -777,5 +777,5 @@
                         fabsf(myVector->data.F32[j] - clippedMean) > stats->clipSigma * errors->data.F32[j]) {
                     tmpMask->data.U8[j] = 0xff;
-                    psTrace("psLib.math", 10, "Clipped %d: %f +/- %f\n", j,
+                    psTrace("psLib.math", 10, "Clipped %ld: %f +/- %f\n", j,
                             myVector->data.F32[j], errors->data.F32[j]);
                     numClipped++;
@@ -788,5 +788,5 @@
                         fabsf(myVector->data.F32[j] - clippedMean) > (stats->clipSigma * clippedStdev)) {
                     tmpMask->data.U8[j] = 0xff;
-                    psTrace("psLib.math", 10, "Clipped %d: %f\n", j, myVector->data.F32[j]);
+                    psTrace("psLib.math", 10, "Clipped %ld: %f\n", j, myVector->data.F32[j]);
                     numClipped++;
                     clipped = true;
@@ -896,6 +896,6 @@
     PS_ASSERT_VECTOR_TYPE(yVec, PS_TYPE_F32, NAN);
     //    PS_ASSERT_VECTORS_SIZE_EQUAL(xVec, yVec, NAN);
-    PS_ASSERT_INT_WITHIN_RANGE(binNum, 0, (xVec->n - 1), NAN);
-    PS_ASSERT_INT_WITHIN_RANGE(binNum, 0, (yVec->n - 1), NAN);
+    PS_ASSERT_INT_WITHIN_RANGE(binNum, 0, (int)(xVec->n - 1), NAN);
+    PS_ASSERT_INT_WITHIN_RANGE(binNum, 0, (int)(yVec->n - 1), NAN);
 
     psVector *x = psVectorAlloc(3, PS_TYPE_F64);
@@ -1008,8 +1008,8 @@
     psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__);
     PS_ASSERT_VECTOR_NON_NULL(params, NAN);
-    PS_ASSERT_VECTOR_SIZE(params, 2, NAN);
+    PS_ASSERT_VECTOR_SIZE(params, (long)2, NAN);
     PS_ASSERT_VECTOR_TYPE(params, PS_TYPE_F32, NAN);
     PS_ASSERT_VECTOR_NON_NULL(coords, NAN);
-    PS_ASSERT_VECTOR_SIZE(coords, 1, NAN);
+    PS_ASSERT_VECTOR_SIZE(coords, (long)1, NAN);
     PS_ASSERT_VECTOR_TYPE(coords, PS_TYPE_F32, NAN);
 
@@ -1020,5 +1020,5 @@
     psF32 gauss = psGaussian(x, mean, stdev, false);
     if (deriv) {
-        PS_ASSERT_VECTOR_SIZE(deriv, 2, NAN);
+        PS_ASSERT_VECTOR_SIZE(deriv, (long)2, NAN);
         PS_ASSERT_VECTOR_TYPE(deriv, PS_TYPE_F32, NAN);
         psF32 tmp = (x - mean) * gauss;
@@ -1136,5 +1136,5 @@
         // we get here, we know that binSize != 0.0.
         long numBins = (max - min) / binSize; // Number of bins
-        psTrace("psLib.math", 6, "Numbins is %d\n", numBins);
+        psTrace("psLib.math", 6, "Numbins is %ld\n", numBins);
         psTrace("psLib.math", 6, "Creating a robust histogram from data range (%.2f - %.2f)\n", min, max);
         // Generate the histogram
@@ -1159,5 +1159,5 @@
         // ADD step 2: Find the bin which contains the 50% data point.
         totalDataPoints = cumulative->nums->data.F32[numBins - 1];
-        psTrace("psLib.math", 6, "Total data points is %d\n", totalDataPoints);
+        psTrace("psLib.math", 6, "Total data points is %ld\n", totalDataPoints);
         long binMedian;
         if (totalDataPoints/2.0 < cumulative->nums->data.F32[0]) {
@@ -1170,5 +1170,5 @@
             if (binMedian < 0) {
                 psError(PS_ERR_UNKNOWN, false,
-                        "Failed to calculate the 50 precent data point (%d).\n", binMedian);
+                        "Failed to calculate the 50 precent data point (%ld).\n", binMedian);
                 psFree(statsMinMax);
                 psFree(histogram);
@@ -1179,5 +1179,5 @@
             }
         }
-        psTrace("psLib.math", 6, "The median bin is %d (%.2f to %.2f)\n", binMedian,
+        psTrace("psLib.math", 6, "The median bin is %ld (%.2f to %.2f)\n", binMedian,
                 cumulative->bounds->data.F32[binMedian], cumulative->bounds->data.F32[binMedian+1]);
 
@@ -1217,5 +1217,5 @@
             }
         }
-        psTrace("psLib.math", 6, "The 15.8655%% and 84.1345%% data point bins are (%d, %d).\n",
+        psTrace("psLib.math", 6, "The 15.8655%% and 84.1345%% data point bins are (%ld, %ld).\n",
                 binLo, binHi);
         psTrace("psLib.math", 6, "binLo midpoint is %f\n", PS_BIN_MIDPOINT(cumulative, binLo));
@@ -1248,7 +1248,7 @@
         #else
         // This code basically interpolates to find the positions exactly.
-        psTrace("psLib.math", 6, "binLo is %d.  Nums at that bin and the next are (%.2f, %.2f)\n",
+        psTrace("psLib.math", 6, "binLo is %ld.  Nums at that bin and the next are (%.2f, %.2f)\n",
                 binLo, cumulative->nums->data.F32[binLo], cumulative->nums->data.F32[binLo+1]);
-        psTrace("psLib.math", 6, "binHi is %d.  Nums at that bin and the next are (%.2f, %.2f)\n",
+        psTrace("psLib.math", 6, "binHi is %ld.  Nums at that bin and the next are (%.2f, %.2f)\n",
                 binHi, cumulative->nums->data.F32[binHi], cumulative->nums->data.F32[binHi+1]);
 
@@ -1304,5 +1304,5 @@
             psTrace("psLib.math", 6, "Masking data more than 25 bins from the median\n");
             psTrace("psLib.math", 6,
-                    "The median is at bin number %d.  We mask bins outside the bin range (%d:%d)\n",
+                    "The median is at bin number %ld.  We mask bins outside the bin range (%ld:%ld)\n",
                     binMedian, maskLo, maskHi);
             psTrace("psLib.math", 6, "Masking data outside (%f %f)\n", medianLo, medianHi);
@@ -1310,5 +1310,5 @@
                 if ((myVector->data.F32[i] < medianLo) || (myVector->data.F32[i] > medianHi)) {
                     mask->data.U8[i] = 0xff;
-                    psTrace("psLib.math", 6, "Masking element %d is %f\n", i, myVector->data.F32[i]);
+                    psTrace("psLib.math", 6, "Masking element %ld is %f\n", i, myVector->data.F32[i]);
                 }
             }
@@ -1350,5 +1350,5 @@
         return false;
     }
-    psTrace("psLib.math", 6, "The 25-percent and 75-precent data point bins are (%d, %d).\n", binLo25, binHi25);
+    psTrace("psLib.math", 6, "The 25-percent and 75-precent data point bins are (%ld, %ld).\n", binLo25, binHi25);
 
     // ADD step 8: Interpolate to find these two positions exactly: these are the upper and lower quartile
@@ -1381,5 +1381,5 @@
     }
     stats->robustN50 = N50;
-    psTrace("psLib.math", 6, "The robustN50 is %d.\n", N50);
+    psTrace("psLib.math", 6, "The robustN50 is %ld.\n", N50);
 
 
@@ -1413,5 +1413,5 @@
         psTrace("psLib.math", 6, "The new min/max values are (%f, %f).\n", min, max);
         psTrace("psLib.math", 6, "The new bin size is %f.\n", newBinSize);
-        psTrace("psLib.math", 6, "The numBins is %d\n", numBins);
+        psTrace("psLib.math", 6, "The numBins is %ld\n", numBins);
 
         psHistogram *histogram = psHistogramAlloc(min, max, numBins); // A new histogram (without outliers)
@@ -1460,5 +1460,5 @@
             }
         }
-        psTrace("psLib.math", 6, "The peak bin is %d, with %f data.n", binNum, binMaxNums);
+        psTrace("psLib.math", 6, "The peak bin is %ld, with %f data.n", binNum, binMaxNums);
 
         // Fit a Gaussian to the bins in the range 20 sigma of the robust histogram median.
@@ -1696,5 +1696,5 @@
     PS_ASSERT_VECTOR_NON_NULL(bounds, NULL);
     PS_ASSERT_VECTOR_TYPE(bounds, PS_TYPE_F32, NULL);
-    PS_ASSERT_INT_LARGER_THAN_OR_EQUAL(bounds->n, 2, NULL);
+    PS_ASSERT_LONG_LARGER_THAN_OR_EQUAL(bounds->n, (long)2, NULL);
 
     // Allocate memory for the new histogram structure.
@@ -1761,5 +1761,5 @@
     PS_ASSERT_PTR_NON_NULL(out->bounds, false);
     PS_ASSERT_PTR_NON_NULL(out->nums, false);
-    PS_ASSERT_INT_WITHIN_RANGE(binNum, 0, ((out->nums->n)-1), false);
+    PS_ASSERT_LONG_WITHIN_RANGE(binNum, (long)0, (long)((out->nums->n)-1), false);
     PS_ASSERT_FLOAT_LARGER_THAN_OR_EQUAL(error, 0.0, false);
     PS_ASSERT_FLOAT_WITHIN_RANGE(data, out->bounds->data.F32[0],
Index: /trunk/psLib/src/math/psUnaryOp.c
===================================================================
--- /trunk/psLib/src/math/psUnaryOp.c	(revision 8626)
+++ /trunk/psLib/src/math/psUnaryOp.c	(revision 8627)
@@ -30,6 +30,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -78,5 +78,5 @@
     long nOut = ((psVector*)OUT)->n; \
     if (nIn != nOut) { \
-        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), nIn, nOut); \
+        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld.  Number of elements must match."), nIn, nOut); \
         if (OUT != IN) { \
             psFree(OUT); \
@@ -99,5 +99,5 @@
     long numColsOut = ((psImage*)OUT)->numCols; \
     if(numRowsIn!=numRowsOut || numColsIn!=numColsOut) { \
-        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %dx%d vs %dx%d."), \
+        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %ldx%ld vs %ldx%ld."), \
                 numColsIn, numRowsIn, numColsOut, numRowsOut); \
         if (OUT != IN) { \
Index: /trunk/psLib/src/mathtypes/psImage.c
===================================================================
--- /trunk/psLib/src/mathtypes/psImage.c	(revision 8626)
+++ /trunk/psLib/src/mathtypes/psImage.c	(revision 8627)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -203,5 +203,5 @@
 
     default:
-        psError (PS_ERR_BAD_PARAMETER_TYPE, true, "datatype %d not defined in psImageInit\n", image->type);
+        psError(PS_ERR_BAD_PARAMETER_TYPE, true, "datatype not defined in psImageInit\n");
     }
     return (false);
Index: /trunk/psLib/src/mathtypes/psVector.c
===================================================================
--- /trunk/psLib/src/mathtypes/psVector.c	(revision 8626)
+++ /trunk/psLib/src/mathtypes/psVector.c	(revision 8627)
@@ -9,6 +9,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-08-16 03:28:13 $
+*  @version $Revision: 1.82 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-08-26 04:34:28 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -301,5 +301,5 @@
                 PS_TYPE_NAME(typeStr,type); \
                 psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
-                        _("Input psVector is an unsupported type (0x%x)."), \
+                        _("Input psVector is an unsupported type (0x%s)."), \
                         typeStr); \
                 psFree(output); \
@@ -326,5 +326,5 @@
             PS_TYPE_NAME(typeStr,type);
             psError(PS_ERR_BAD_PARAMETER_TYPE, true,
-                    _("Input psVector is an unsupported type (0x%x)."),
+                    _("Input psVector is an unsupported type (0x%s)."),
                     typeStr);
             psFree(output);
@@ -816,5 +816,5 @@
         return (true);
     default:
-        psError (PS_ERR_BAD_PARAMETER_TYPE, true, "datatype %d not defined in psImageInit\n", vector->type);
+        psError (PS_ERR_BAD_PARAMETER_TYPE, true, "datatype not defined in psImageInit\n");
         return (false);
     }
Index: /trunk/psLib/src/mathtypes/psVector.h
===================================================================
--- /trunk/psLib/src/mathtypes/psVector.h	(revision 8626)
+++ /trunk/psLib/src/mathtypes/psVector.h	(revision 8627)
@@ -11,6 +11,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-16 20:36:04 $
+ *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -318,5 +318,5 @@
 if ((VEC1)->n != (VEC2)->n) { \
     psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
-            "psVector %s has size %d, psVector %s has size %d.", \
+            "psVector %s has size %ld, psVector %s has size %ld.", \
             #VEC1, (VEC1)->n, #VEC2, (VEC2)->n); \
     return(RVAL); \
@@ -326,5 +326,5 @@
 if ((VEC)->n != (SIZE)) { \
     psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
-            "psVector %s has size %d, should be %d.", \
+            "psVector %s has size %ld, should be %ld.", \
             #VEC, (VEC)->n, (SIZE)); \
     return(RVAL); \
Index: /trunk/psLib/src/sys/psAbort.h
===================================================================
--- /trunk/psLib/src/sys/psAbort.h	(revision 8626)
+++ /trunk/psLib/src/sys/psAbort.h	(revision 8627)
@@ -12,6 +12,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-06-17 23:39:51 $
+ *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -37,4 +37,11 @@
  *
  */
+#ifdef __GNUC__
+void psAbort(
+    const char *name,                  ///< Source of abort such as file or function detected
+    const char *format,                   ///< A printf style formatting statement defining msg
+    ...
+) __attribute__((format(printf, 2, 3)));
+#else // __GNUC__
 void psAbort(
     const char *name,                  ///< Source of abort such as file or function detected
@@ -42,4 +49,5 @@
     ...
 );
+#endif // __GNUC__
 
 /** @} */ // Doxygen - End of SystemGroup Functions
Index: /trunk/psLib/src/sys/psAssert.h
===================================================================
--- /trunk/psLib/src/sys/psAssert.h	(revision 8626)
+++ /trunk/psLib/src/sys/psAssert.h	(revision 8627)
@@ -3,4 +3,6 @@
 
 #include <assert.h>
+#include <inttypes.h>
+
 #include "psError.h"
 #include "psLogMsg.h"
@@ -155,5 +157,20 @@
 if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \
     psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
-            "Error: %s, %lld, is out of range.", \
+            "Error: %s, %ld, is out of range.  Must be between %ld and %ld.", \
+            #NAME, NAME, LOWER, UPPER); \
+    return RVAL; \
+}
+
+#define PS_ASSERT_LONG_LARGER_THAN_OR_EQUAL(NAME1, NAME2, RVAL) \
+if (!((NAME1) >= (NAME2))) { \
+    psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Error: !(%s >= %s) (%ld %ld).",\
+            #NAME1, #NAME2, NAME1, NAME2); \
+    return(RVAL); \
+}
+
+#define PS_ASSERT_S64_WITHIN_RANGE(NAME, LOWER, UPPER, RVAL) \
+if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \
+    psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
+            "Error: %s, %" PRId64 ", is out of range.  Must be between %" PRId64 " and %" PRId64 ".", \
             #NAME, NAME, LOWER, UPPER); \
     return RVAL; \
Index: /trunk/psLib/src/sys/psConfigure.c
===================================================================
--- /trunk/psLib/src/sys/psConfigure.c	(revision 8626)
+++ /trunk/psLib/src/sys/psConfigure.c	(revision 8627)
@@ -13,6 +13,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -80,5 +80,5 @@
     nCorrupted = psMemCheckCorruption(false);
     if (nCorrupted > 0) {
-        psError(PS_ERR_UNKNOWN, true, "%d memory blocks corrupted; list written to %s.\n", nCorrupted);
+        psError(PS_ERR_UNKNOWN, true, "%d memory blocks corrupted; list written to %s.\n", nCorrupted, memCheckName);
     } else {
         psLogMsg(__func__, PS_LOG_INFO, "No memory corruption found.\n");
Index: /trunk/psLib/src/sys/psError.h
===================================================================
--- /trunk/psLib/src/sys/psError.h	(revision 8626)
+++ /trunk/psLib/src/sys/psError.h	(revision 8627)
@@ -12,6 +12,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:11:25 $
+ *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -92,9 +92,18 @@
  *
  */
+#ifdef __GNUC__
 void psErrorStackPrint(
     FILE* fd,                          ///< destination file descriptor
-    const char* format,                   ///< printf-style format of header line
-    ...                                ///< any parameters required in fmt
-);
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+) __attribute__((format(printf, 2, 3)));
+#else // __GNUC__
+void psErrorStackPrint(
+    FILE* fd,                          ///< destination file descriptor
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+);
+#endif // __GNUC__
+
 
 #ifndef SWIG
@@ -155,4 +164,5 @@
  *  @return psErrorcode    the given error code
  */
+#ifdef __GNUC__
 psErrorCode p_psError(
     const char* filename,              ///< file name
@@ -163,5 +173,16 @@
     const char* format,                ///< printf-style format of header line
     ...                                ///< any parameters required in fmt
-);
+) __attribute__((format(printf, 6, 7)));
+#else // __GNUC__
+psErrorCode p_psError(
+    const char* filename,              ///< file name
+    unsigned int lineno,               ///< line number in file
+    const char* func,                  ///< function name
+    psErrorCode code,                  ///< Error class code
+    bool new,                          ///< true if error originates at this location
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+);
+#endif // __GNUC__
 
 /** Logs a warning message.
@@ -172,11 +193,21 @@
  *
 */
+#ifdef __GNUC__
 void p_psWarning(
     const char* file,                  ///< file name
     int lineno,                        ///< line number in file
     const char* func,                  ///< function name
-    const char* fmt,                   ///< printf-style format of header line
-    ...                                ///< any parameters required in fmt
-);
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+) __attribute__((format(printf, 4, 5)));
+#else // __GNUC__
+void p_psWarning(
+    const char* file,                  ///< file name
+    int lineno,                        ///< line number in file
+    const char* func,                  ///< function name
+    const char* format,                ///< printf-style format of header line
+    ...                                ///< any parameters required in fmt
+);
+#endif // __GNUC__
 
 
Index: /trunk/psLib/src/sys/psLogMsg.h
===================================================================
--- /trunk/psLib/src/sys/psLogMsg.h	(revision 8626)
+++ /trunk/psLib/src/sys/psLogMsg.h	(revision 8627)
@@ -11,6 +11,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-16 23:01:10 $
+ *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -90,4 +90,12 @@
  *
  */
+#ifdef __GNUC__
+void psLogMsg(
+    const char *name,                  ///< name of the log source
+    int level,                         ///< severity level of this log message
+    const char *format,                ///< printf-style format command
+    ...
+) __attribute__((format(printf, 3, 4)));
+#else // __GNUC__
 void psLogMsg(
     const char *name,                  ///< name of the log source
@@ -96,4 +104,5 @@
     ...
 );
+#endif // __GNUC__
 
 #ifndef SWIG
Index: /trunk/psLib/src/sys/psMemory.c
===================================================================
--- /trunk/psLib/src/sys/psMemory.c	(revision 8626)
+++ /trunk/psLib/src/sys/psMemory.c	(revision 8627)
@@ -8,6 +8,6 @@
 *  @author Robert Lupton, Princeton University
 *
-*  @version $Revision: 1.79 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-08-24 02:17:17 $
+*  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-08-26 04:34:28 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -530,5 +530,5 @@
         ptr = memExhaustedCallback(size);
         if (ptr == NULL) {
-            psAbort(__func__, "Failed to reallocate %ld bytes at %s:%d", size, file, lineno);
+            psAbort(__func__, "Failed to reallocate %zd bytes at %s:%d", size, file, lineno);
         }
     }
Index: /trunk/psLib/src/sys/psTrace.h
===================================================================
--- /trunk/psLib/src/sys/psTrace.h	(revision 8626)
+++ /trunk/psLib/src/sys/psTrace.h	(revision 8627)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-17 01:39:03 $
+ *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -89,5 +89,6 @@
 );
 
-#else
+#else // DOXYGEN
+#ifdef __GNUC__
 /// Send a trace message
 void p_psTrace(
@@ -99,6 +100,16 @@
     const char *format,                ///< printf-style format command
     ...                                ///< trace message arguments
+) __attribute__((format(printf, 6, 7)));
+#else // __GNUC__
+void p_psTrace(
+    const char* file,                  ///< file name
+    int lineno,                        ///< line number in file
+    const char* func,                  ///< function name
+    const char *facil,                 ///< facilty of interest
+    psS32 level,                       ///< desired trace level
+    const char *format,                ///< printf-style format command
+    ...                                ///< trace message arguments
 );
-
+#endif // __GNUC__
 #ifndef SWIG
 #define psTrace(facil, level, ...) p_psTrace(__FILE__,__LINE__,__func__,facil, level, __VA_ARGS__)
@@ -110,7 +121,5 @@
     va_list ap                         ///< varargs argument list
 );
-
 #endif /* SWIG */
-
 #endif /* DOXYGEN */
 
Index: /trunk/psLib/src/types/psArguments.c
===================================================================
--- /trunk/psLib/src/types/psArguments.c	(revision 8626)
+++ /trunk/psLib/src/types/psArguments.c	(revision 8627)
@@ -7,6 +7,6 @@
  *  @author David Robbins, MHPCC
  *
- *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-09 02:26:44 $
+ *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -304,5 +304,5 @@
         case PS_DATA_STRING:
             if (item->data.V) {
-                printf("""%s""", (char*)(item->data.V));
+                printf("""%s""", item->data.str);
             }
             break;
Index: /trunk/psLib/src/types/psArray.c
===================================================================
--- /trunk/psLib/src/types/psArray.c	(revision 8626)
+++ /trunk/psLib/src/types/psArray.c	(revision 8627)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-25 05:26:19 $
+ *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -215,5 +215,5 @@
         if (position >= array->nalloc) {
             psError(PS_ERR_BAD_PARAMETER_NULL, true,
-                    _("Specified position, %d, is greater than the allocated size of the array, %d."),
+                    _("Specified position, %ld, is greater than the allocated size of the array, %ld."),
                     position, array->nalloc);
             return false;
Index: /trunk/psLib/src/types/psBitSet.c
===================================================================
--- /trunk/psLib/src/types/psBitSet.c	(revision 8626)
+++ /trunk/psLib/src/types/psBitSet.c	(revision 8627)
@@ -11,6 +11,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -82,5 +82,5 @@
     if (nalloc < 0) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                _("The number of bit in a psBitSet (%d) must be greater than zero."),
+                _("The number of bit in a psBitSet (%ld) must be greater than zero."),
                 nalloc);
         return NULL;
@@ -113,6 +113,6 @@
                 (bit > bitSet->n * 8 - 1) ) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                _("The specified bit position (%d) is invalid.  Position must be between 0 and %d."),
-                bit,bitSet->n * 8 - 1);
+                _("The specified bit position (%ld) is invalid.  Position must be between 0 and %ld."),
+                bit, bitSet->n * 8 - 1);
         return bitSet;
     }
@@ -136,6 +136,6 @@
                 (bit > bitSet->n * 8 - 1) ) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                _("The specified bit position (%d) is invalid.  Position must be between 0 and %d."),
-                bit,bitSet->n * 8 - 1);
+                _("The specified bit position (%ld) is invalid.  Position must be between 0 and %ld."),
+                bit, bitSet->n * 8 - 1);
         return bitSet;
     }
@@ -159,5 +159,5 @@
                 (bit > bitSet->n * 8 - 1) ) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                _("The specified bit position (%d) is invalid.  Position must be between 0 and %d."),
+                _("The specified bit position (%ld) is invalid.  Position must be between 0 and %ld."),
                 bit,bitSet->n * 8 - 1);
         return false;
Index: /trunk/psLib/src/types/psHash.c
===================================================================
--- /trunk/psLib/src/types/psHash.c	(revision 8626)
+++ /trunk/psLib/src/types/psHash.c	(revision 8627)
@@ -12,6 +12,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-08-09 02:26:44 $
+*  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-08-26 04:34:28 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -20,4 +20,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <inttypes.h>
+
 #include "psHash.h"
 #include "psMemory.h"
@@ -148,5 +150,5 @@
     table->n = nalloc;
 
-    psTrace("psLib.types", 1, "Creating %d-element hash table\n", nalloc);
+    psTrace("psLib.types", 1, "Creating %ld-element hash table\n", nalloc);
 
     // Initialize all buckets to NULL.
@@ -260,5 +262,5 @@
     if ((hash < 0) || (hash >= table->n)) {
         psError(PS_ERR_UNKNOWN, true,
-                "Internal hash function out of range (%d)", hash);
+                "Internal hash function out of range (%" PRId64 ")", hash);
     }
     // ptr will have the correct hash bucket.
Index: /trunk/psLib/src/types/psList.c
===================================================================
--- /trunk/psLib/src/types/psList.c	(revision 8626)
+++ /trunk/psLib/src/types/psList.c	(revision 8627)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -206,5 +206,5 @@
     if (location < 0 || location >= (int)list->n) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                _("Specified location, %d, is invalid."),
+                _("Specified location, %ld, is invalid."),
                 location);
         return false;
@@ -260,5 +260,5 @@
     if (location > 0 && location >= (int)list->n) {
         psLogMsg(__func__,PS_LOG_WARN,
-                 "Specified location, %d, is beyond the end of the list.  "
+                 "Specified location, %ld, is beyond the end of the list.  "
                  "Adding data item to tail.",
                  location);
@@ -485,5 +485,5 @@
     if (! psListIteratorSet(iterator,location)) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                _("Specified location, %d, is invalid."),
+                _("Specified location, %ld, is invalid."),
                 location);
         return NULL;
Index: /trunk/psLib/src/types/psLookupTable.c
===================================================================
--- /trunk/psLib/src/types/psLookupTable.c	(revision 8626)
+++ /trunk/psLib/src/types/psLookupTable.c	(revision 8627)
@@ -7,6 +7,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-08-23 01:56:15 $
+*  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-08-26 04:34:28 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
@@ -20,4 +20,5 @@
 #include <limits.h>
 #include <math.h>
+#include <inttypes.h>
 
 #include "psMemory.h"
@@ -593,5 +594,5 @@
 
     if (indexCol >= vectors->n) {
-        psError(PS_ERR_BAD_PARAMETER_VALUE,true,"Index column, %d, is larger than number of columns, %d.",
+        psError(PS_ERR_BAD_PARAMETER_VALUE,true,"Index column, %ld, is larger than number of columns, %ld.",
                 indexCol, vectors->n);
         return NULL;
@@ -814,5 +815,5 @@
         if(hiIdx >= numRows) {
             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                    _("High index too big, %d."), hiIdx);
+                    _("High index too big, %" PRIu64 "."), hiIdx);
             return NAN;
         }
@@ -824,5 +825,5 @@
     if(loIdx < 0) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                _("Low index too small, %d."), loIdx);
+                _("Low index too small, %" PRIu64 "."), loIdx);
         return NAN;
     }
Index: /trunk/psLib/src/types/psMetadata.c
===================================================================
--- /trunk/psLib/src/types/psMetadata.c	(revision 8626)
+++ /trunk/psLib/src/types/psMetadata.c	(revision 8627)
@@ -12,6 +12,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.128 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-25 22:10:35 $
+ *  @version $Revision: 1.129 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-26 04:34:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -733,5 +733,5 @@
         if (entry == NULL) {
             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                    _("Could not find metadata item at index %d."), where);
+                    _("Could not find metadata item at index %ld."), where);
             return false;
         }
@@ -740,5 +740,5 @@
         if (key == NULL) {
             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                    _("Failed to remove metadata item, at index %d, from metadata list."),
+                    _("Failed to remove metadata item, at index %ld, from metadata list."),
                     where);
             return false;
@@ -959,5 +959,5 @@
         }
         if (!psMetadataIteratorSet(newIter, location)) {
-            psError(PS_ERR_UNKNOWN, false, "Unable to set location=%d for metadata iterator.\n", location);
+            psError(PS_ERR_UNKNOWN, false, "Unable to set location=%ld for metadata iterator.\n", location);
             psFree(newIter);
             return NULL;
@@ -1229,5 +1229,5 @@
         switch (item->type) {
         case PS_DATA_STRING:
-            fprintf(fd, "%s\n", (char*)(item->data.V));
+            fprintf(fd, "%s\n", item->data.str);
             break;
         case PS_DATA_BOOL:
Index: /trunk/psLib/src/types/psMetadataConfig.c
===================================================================
--- /trunk/psLib/src/types/psMetadataConfig.c	(revision 8626)
+++ /trunk/psLib/src/types/psMetadataConfig.c	(revision 8627)
@@ -10,6 +10,6 @@
 *  @author Eric Van Alst, MHPCC
 *
-*  @version $Revision: 1.74 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-08-26 00:32:39 $
+*  @version $Revision: 1.75 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-08-26 04:34:28 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -539,5 +539,5 @@
     case 's':
         if (type == PS_DATA_STRING) {
-            fprintf(fd,format,(char*)item->data.V);
+            fprintf(fd,format, item->data.str);
         } else {
             psError(PS_ERR_BAD_PARAMETER_TYPE,true,
@@ -1010,5 +1010,5 @@
         break;
     default:
-        psError(PS_ERR_IO,true,_("Metadata type '%s', found on line %u of %s, is invalid."),
+        psError(PS_ERR_IO,true,_("Metadata of unknown type found on line %u of %s."),
                 lineCount,fileName);
         break;
@@ -1346,5 +1346,5 @@
     case PS_DATA_STRING:
         psStringAppend(&content, "%-15s  %-8s", item->name, "STR");
-        psStringAppend(&content, "  %s", ((char *)(item->data.V)));
+        psStringAppend(&content, "  %s", item->data.str);
         if ( strncmp(item->comment,"",2) ) {
             psStringAppend(&content, " #%s", item->comment);
Index: /trunk/psLib/src/types/psMetadataItemCompare.c
===================================================================
--- /trunk/psLib/src/types/psMetadataItemCompare.c	(revision 8626)
+++ /trunk/psLib/src/types/psMetadataItemCompare.c	(revision 8627)
@@ -67,6 +67,7 @@
             return false;
         }
-        psTrace("psLib.types", 10, "Comparing '%s' with '%s'\n", compare->data.V, template->
-                data.V);
+        psTrace("psLib.types", 10, "Comparing '%s' with '%s'\n",
+                compare->data.str, template->
+                data.str);
         return (strcasecmp(compare->data.V, template->
                            data.V) == 0) ? true : false;
Index: /trunk/psLib/src/xml/psXML.c
===================================================================
--- /trunk/psLib/src/xml/psXML.c	(revision 8626)
+++ /trunk/psLib/src/xml/psXML.c	(revision 8627)
@@ -10,6 +10,6 @@
 *  @author David Robbins, MHPCC
 *
-*  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-08-08 23:32:23 $
+*  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-08-26 04:34:28 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -105,5 +105,5 @@
             prop = xmlNewProp(cur_node, (const xmlChar*)"name", (const xmlChar*)item->name);
             prop = xmlNewProp(cur_node, (const xmlChar*)"psType", (const xmlChar*)"STR");
-            strncpy(content, ((char *)(item->data.V)), MAXSTR);
+            strncpy(content, item->data.str, MAXSTR);
             prop = xmlNewProp(cur_node, (const xmlChar*)"value", (const xmlChar*)content);
             break;
