Index: trunk/Ohana/src/opihi/cmd.data/rebin.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/rebin.c	(revision 7080)
+++ trunk/Ohana/src/opihi/cmd.data/rebin.c	(revision 7917)
@@ -33,6 +33,6 @@
 
   if (argc != 4) {
-    fprintf (stderr, "USAGE: rebin <from> <to> scale \n");
-    fprintf (stderr, "  negative integer scale expands image\n");
+    gprint (GP_ERR, "USAGE: rebin <from> <to> scale \n");
+    gprint (GP_ERR, "  negative integer scale expands image\n");
     return (FALSE);
   }
@@ -63,5 +63,5 @@
     }      
   }
-  if (VERBOSE) fprintf (GetOutfile(), "rebin %s to %s (%d,%d to %d,%d)\n", argv[1], argv[2], in[0].header.Naxis[0], in[0].header.Naxis[1], nx, ny);
+  if (VERBOSE) gprint (GP_LOG, "rebin %s to %s (%d,%d to %d,%d)\n", argv[1], argv[2], in[0].header.Naxis[0], in[0].header.Naxis[1], nx, ny);
 
   Nx = in[0].header.Naxis[0];
@@ -171,5 +171,5 @@
     
     /* normalization is broken.  repair please */
-    if (Normalize) { fprintf (stderr, "normalize not enabled for fractional scaling\n"); }
+    if (Normalize) { gprint (GP_ERR, "normalize not enabled for fractional scaling\n"); }
 
     if (scale < 0) scale = 1.0 / fabs(scale);
