Index: trunk/Ohana/src/opihi/dvo/subpix.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/subpix.c	(revision 7680)
+++ trunk/Ohana/src/opihi/dvo/subpix.c	(revision 7917)
@@ -25,5 +25,5 @@
 
   if (argc != 4) {
-    fprintf (stderr, "USAGE: subpix ra dec radius\n");
+    gprint (GP_ERR, "USAGE: subpix ra dec radius\n");
     return (FALSE);
   }
@@ -37,5 +37,5 @@
   skylist = SkyListByRadius (sky, -1, Ra, Dec, Radius);
   if (skylist[0].Nregions > 1) {
-    fprintf (stderr, "warning, radius overlaps region boundary, not yet implemented\n");
+    gprint (GP_ERR, "warning, radius overlaps region boundary, not yet implemented\n");
   }
 
@@ -83,5 +83,5 @@
   }
   if (!Nentry) {
-    fprintf (stderr, "no stars found\n");
+    gprint (GP_ERR, "no stars found\n");
     free (RA);
     free (DEC);
@@ -107,5 +107,5 @@
   Ra = RA[entry[Nmin]];
   Dec = DEC[entry[Nmin]];
-  fprintf (stderr, "finding subpix values for star @ %f %f\n", Ra, Dec);
+  gprint (GP_ERR, "finding subpix values for star @ %f %f\n", Ra, Dec);
 
   free (RA);
@@ -147,5 +147,5 @@
 	RD_to_XY (&X, &Y, Ra, Dec, &image[I].coords);
 	t = TimeValue (measure[j].t, TimeReference, TimeFormat);
-	fprintf (GetOutfile(), "%f %6.3f %7.2f %7.2f %5.3f\n", t, Mabs, X, Y, image[I].secz_PS);
+	gprint (GP_LOG, "%f %6.3f %7.2f %7.2f %5.3f\n", t, Mabs, X, Y, image[I].secz_PS);
       } 
     }
