Index: trunk/Ohana/src/opihi/dvo/fitsed.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/fitsed.c	(revision 7892)
+++ trunk/Ohana/src/opihi/dvo/fitsed.c	(revision 7917)
@@ -187,5 +187,5 @@
   /* loop over regions, extract data for each region */
   // XXX add interrupt checks
-  fprintf (stderr, "using %d possible regions\n", skylist[0].Nregions);
+  gprint (GP_ERR, "using %d possible regions\n", skylist[0].Nregions);
   for (k = 0; k < skylist[0].Nregions; k++) {
     /* lock, load, unlock catalog */
@@ -326,5 +326,5 @@
 	KiiCursorOn (fd);
 	while (KiiCursorRead (fd, &X, &Y, key)) {
-	  fprintf (stderr, "window: %f %f (%s)\n", X, Y, key);
+	  gprint (GP_ERR, "window: %f %f (%s)\n", X, Y, key);
 	  if (!strcasecmp (key, "Q")) {
 	    KiiCursorOff (fd);
@@ -343,26 +343,26 @@
     unlock_catalog (&catalog);
   }
-  fprintf (stderr, "fitted %d stars\n", Nfit);
+  gprint (GP_ERR, "fitted %d stars\n", Nfit);
   status = TRUE;
   goto finish;
   
 usage:
-  fprintf (stderr, "USAGE: fitset (sedtable) : (F) - (F)\n");
+  gprint (GP_ERR, "USAGE: fitset (sedtable) : (F) - (F)\n");
   goto escape;
 
 table_missing:
-  fprintf (stderr, "ERROR: can't open the SED table\n");
+  gprint (GP_ERR, "ERROR: can't open the SED table\n");
   goto escape;
 
 color_missing:
-  fprintf (stderr, "ERROR: reference color not in SED table\n");
+  gprint (GP_ERR, "ERROR: reference color not in SED table\n");
   goto escape;
 
 color_undefined:
-  fprintf (stderr, "ERROR: undefined photcode in reference color\n");
+  gprint (GP_ERR, "ERROR: undefined photcode in reference color\n");
   goto escape;
 
 code_missing:
-  fprintf (stderr, "ERROR: undefined photcode in SED table\n");
+  gprint (GP_ERR, "ERROR: undefined photcode in SED table\n");
   goto escape;
 
