Index: trunk/Ohana/src/opihi/cmd.astro/flux.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/flux.c	(revision 2843)
+++ trunk/Ohana/src/opihi/cmd.astro/flux.c	(revision 7917)
@@ -12,5 +12,5 @@
 
   if (argc != 3) {
-    fprintf (stderr, "USAGE: flux <buffer> (region)\n");
+    gprint (GP_ERR, "USAGE: flux <buffer> (region)\n");
     return (FALSE);
   }
@@ -20,5 +20,5 @@
   f = fopen (argv[2], "r");
   if (f == (FILE *) NULL) {
-    fprintf (stderr, "file %s not found\n", argv[2]);
+    gprint (GP_ERR, "file %s not found\n", argv[2]);
     return (FALSE);
   }
@@ -46,5 +46,5 @@
     bb[i] = hypot (bx[i], by[i]) * SIGN (bx[i]*by[i+1] - bx[i+1]*by[i]);
   }
-  fprintf (stderr, "%f %f %f %f\n", bb[0], bb[1], bb[2], bb[3]);
+  gprint (GP_ERR, "%f %f %f %f\n", bb[0], bb[1], bb[2], bb[3]);
 
   /* this only works for convex contours --
@@ -70,5 +70,5 @@
   signal (SIGINT, oldsignal);
 
-  fprintf (GetOutfile(), "flux: %f\n", flux);
+  gprint (GP_LOG, "flux: %f\n", flux);
   set_variable ("FLUX", flux);
   return (TRUE);
