Index: /trunk/psastro/src/psastroLoadReferences.c
===================================================================
--- /trunk/psastro/src/psastroLoadReferences.c	(revision 8673)
+++ /trunk/psastro/src/psastroLoadReferences.c	(revision 8674)
@@ -115,5 +115,5 @@
     psFree (table);
 
-    psTrace (__func__, 3, "loaded %d reference stars from (%10.6f,%10.6f) - (%10.6f,%10.6f)\n",
+    psTrace (__func__, 3, "loaded %ld reference stars from (%10.6f,%10.6f) - (%10.6f,%10.6f)\n",
              refs->n, RAmin, DECmin, RAmax, DECmax);
     return refs;
Index: /trunk/psastro/src/psastroMosaicGetRefstars.c
===================================================================
--- /trunk/psastro/src/psastroMosaicGetRefstars.c	(revision 8673)
+++ /trunk/psastro/src/psastroMosaicGetRefstars.c	(revision 8674)
@@ -75,5 +75,5 @@
 		    psFree (ref);
 		}
-		psTrace (__func__, 4, "Added %d refstars\n", refstars->n);
+		psTrace (__func__, 4, "Added %ld refstars\n", refstars->n);
 		psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.REFSTARS", PS_DATA_ARRAY, "astrometry matches", refstars);
 
Index: /trunk/psastro/src/psastroMosaicSetMatch.c
===================================================================
--- /trunk/psastro/src/psastroMosaicSetMatch.c	(revision 8673)
+++ /trunk/psastro/src/psastroMosaicSetMatch.c	(revision 8674)
@@ -35,10 +35,10 @@
 		psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS");
 		if (refstars == NULL) { continue; }
-		psTrace (__func__, 4, "Trying %d refstars\n", refstars->n);
+		psTrace (__func__, 4, "Trying %ld refstars\n", refstars->n);
 
 		// use small radius to match stars (assume starting astrometry is good)
 		// XXX should this take a (double radius)?
 		psArray *matches = pmAstromRadiusMatchChip (rawstars, refstars, recipe);
-		psTrace (__func__, 4, "Matched %d refstars\n", matches->n);
+		psTrace (__func__, 4, "Matched %ld refstars\n", matches->n);
 
 		sprintf (name, "raw.%02d.dat", view->chip);
Index: /trunk/psastro/src/psastroWCS.c
===================================================================
--- /trunk/psastro/src/psastroWCS.c	(revision 8673)
+++ /trunk/psastro/src/psastroWCS.c	(revision 8674)
@@ -213,5 +213,5 @@
 	break;
       default:
-	psLogMsg ("psastro", 2, "warning: unknown projection type %s\n", toSky->type);
+	psLogMsg ("psastro", 2, "warning: unknown projection type %d\n", toSky->type);
 	return false;
     }
