Index: /trunk/psphot/src/psphot.c
===================================================================
--- /trunk/psphot/src/psphot.c	(revision 8671)
+++ /trunk/psphot/src/psphot.c	(revision 8672)
@@ -24,5 +24,5 @@
     // load input data (config and images (signal, noise, mask)
     if (!psphotParseCamera (config)) {
-        psErrorStackPrint(stderr, "");
+        psErrorStackPrint(stderr, " ");
         exit(1);
     }
Index: /trunk/psphot/src/psphotApResid.c
===================================================================
--- /trunk/psphot/src/psphotApResid.c	(revision 8671)
+++ /trunk/psphot/src/psphotApResid.c	(revision 8672)
@@ -84,5 +84,5 @@
 	Npsf ++;
     }
-    psLogMsg ("psphot.apresid", 4, "measure aperture residuals : %f sec for %d objects (%d skipped, %d failed, %d invalid)\n", 
+    psLogMsg ("psphot.apresid", 4, "measure aperture residuals : %f sec for %d objects (%d skipped, %d failed, %ld invalid)\n", 
 	      psTimerMark ("psphot"), Npsf, Nskip, Nfail, sources->n - Npsf - Nskip - Nfail);
 
Index: /trunk/psphot/src/psphotBlendFit.c
===================================================================
--- /trunk/psphot/src/psphotBlendFit.c	(revision 8671)
+++ /trunk/psphot/src/psphotBlendFit.c	(revision 8672)
@@ -84,5 +84,5 @@
     }
 
-    psLogMsg ("psphot", 3, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %d skipped)\n", psTimerMark ("psphot"), Nfit, Npsf, Next, Nfail, sources->n - Nfit);
+    psLogMsg ("psphot", 3, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %ld skipped)\n", psTimerMark ("psphot"), Nfit, Npsf, Next, Nfail, sources->n - Nfit);
     return (true);
 }
Index: /trunk/psphot/src/psphotChoosePSF.c
===================================================================
--- /trunk/psphot/src/psphotChoosePSF.c	(revision 8671)
+++ /trunk/psphot/src/psphotChoosePSF.c	(revision 8672)
@@ -35,5 +35,5 @@
         if (source->mode & PM_SOURCE_MODE_PSFSTAR) psArrayAdd (stars, 200, source);
     }
-    psLogMsg ("psphot.pspsf", 4, "selected candidate %d PSF objects\n", stars->n);
+    psLogMsg ("psphot.pspsf", 4, "selected candidate %ld PSF objects\n", stars->n);
 
     if (stars->n == 0) {
Index: /trunk/psphot/src/psphotEnsemblePSF.c
===================================================================
--- /trunk/psphot/src/psphotEnsemblePSF.c	(revision 8671)
+++ /trunk/psphot/src/psphotEnsemblePSF.c	(revision 8672)
@@ -130,5 +130,5 @@
 	psFree (otSource);
     }
-    psLogMsg ("psphot.emsemble", 4, "built models: %f (%d objects)\n", psTimerMark ("psphot"), sources->n);
+    psLogMsg ("psphot.emsemble", 4, "built models: %f (%ld objects)\n", psTimerMark ("psphot"), sources->n);
     
     // fill out the sparse matrix
Index: /trunk/psphot/src/psphotFindPeaks.c
===================================================================
--- /trunk/psphot/src/psphotFindPeaks.c	(revision 8671)
+++ /trunk/psphot/src/psphotFindPeaks.c	(revision 8672)
@@ -63,5 +63,5 @@
 	pmPeaksWriteText (peaks, output);
     }
-    psLogMsg ("psphot", 3, "%d peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
+    psLogMsg ("psphot", 3, "%ld peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
 
     return (peaks);
Index: /trunk/psphot/src/psphotMagnitudes.c
===================================================================
--- /trunk/psphot/src/psphotMagnitudes.c	(revision 8671)
+++ /trunk/psphot/src/psphotMagnitudes.c	(revision 8672)
@@ -17,5 +17,5 @@
     }	
 
-    psLogMsg ("psphot.magnitudes", 4, "measure magnitudes : %f sec for %d objects (%d with apertures)\n", psTimerMark ("psphot"), sources->n, Nap);
+    psLogMsg ("psphot.magnitudes", 4, "measure magnitudes : %f sec for %ld objects (%d with apertures)\n", psTimerMark ("psphot"), sources->n, Nap);
     return true;
 }
Index: /trunk/psphot/src/psphotReplaceUnfit.c
===================================================================
--- /trunk/psphot/src/psphotReplaceUnfit.c	(revision 8671)
+++ /trunk/psphot/src/psphotReplaceUnfit.c	(revision 8672)
@@ -20,5 +20,5 @@
 	source->mode &= ~PM_SOURCE_MODE_TEMPSUB;
     }
-    psLogMsg ("psphot.replace", 3, "replace unfitted models: %f sec (%d objects)\n", psTimerMark ("psphot"), sources->n);
+    psLogMsg ("psphot.replace", 3, "replace unfitted models: %f sec (%ld objects)\n", psTimerMark ("psphot"), sources->n);
     return true;
 }
Index: /trunk/psphot/src/psphotSourceFits.c
===================================================================
--- /trunk/psphot/src/psphotSourceFits.c	(revision 8671)
+++ /trunk/psphot/src/psphotSourceFits.c	(revision 8672)
@@ -79,5 +79,5 @@
 	// if this one failed, skip it
 	if (!psphotEvalPSF (blend, model)) {
-	    psTrace ("psphot.blend", 5, "failed on blend %d of %d\n", i, modelSet->n);
+	    psTrace ("psphot.blend", 5, "failed on blend %d of %ld\n", i, modelSet->n);
 	    continue;
 	}
@@ -96,5 +96,5 @@
     // evaluate the primary object
     if (!psphotEvalPSF (source, PSF)) {
-	psTrace ("psphot.blend", 5, "failed on blend 0 of %d\n", modelSet->n);
+	psTrace ("psphot.blend", 5, "failed on blend 0 of %ld\n", modelSet->n);
 	psFree (PSF);
 	return false;
Index: /trunk/psphot/src/psphotSourceStats.c
===================================================================
--- /trunk/psphot/src/psphotSourceStats.c	(revision 8671)
+++ /trunk/psphot/src/psphotSourceStats.c	(revision 8672)
@@ -71,5 +71,5 @@
     }
      
-    psLogMsg ("psphot", 3, "%d moments: %f sec\n", sources->n, psTimerMark ("psphot"));
+    psLogMsg ("psphot", 3, "%ld moments: %f sec\n", sources->n, psTimerMark ("psphot"));
 
     return (sources);
