Index: trunk/Ohana/src/opihi/cmd.data/peak.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/peak.c	(revision 6642)
+++ trunk/Ohana/src/opihi/cmd.data/peak.c	(revision 7917)
@@ -15,5 +15,5 @@
 
   if ((argc != 5) && (argc != 3)) {
-    fprintf (stderr, "USAGE: peak <x> <y> [start end]\n");
+    gprint (GP_ERR, "USAGE: peak <x> <y> [start end]\n");
     return (FALSE);
   }
@@ -50,5 +50,5 @@
   set_variable ("peaknum", imax);
 
-  if (!QUIET) fprintf (GetOutfile(), "peak %f @ %f (%d)\n", ymax, xmax, imax);
+  if (!QUIET) gprint (GP_LOG, "peak %f @ %f (%d)\n", ymax, xmax, imax);
 
   return (TRUE);
