Index: trunk/Ohana/src/opihi/dvo/simage.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/simage.c	(revision 7680)
+++ trunk/Ohana/src/opihi/dvo/simage.c	(revision 7917)
@@ -31,14 +31,14 @@
 
   if (argc != 2) {
-    fprintf (stderr, "USAGE: image (filename)\n");
+    gprint (GP_ERR, "USAGE: image (filename)\n");
     return (FALSE);
   }
 
-  fprintf (stderr, "not working at the moment (cmp format)\n");
+  gprint (GP_ERR, "not working at the moment (cmp format)\n");
   return (FALSE);
   
   /* read header */
   if (!gfits_read_header (argv[1], &header)) {
-    fprintf (stderr, "ERROR: can't find image file %s\n", argv[1]);
+    gprint (GP_ERR, "ERROR: can't find image file %s\n", argv[1]);
     return (FALSE);
   }
@@ -47,5 +47,5 @@
   gfits_scan (&header, "CTYPE1",   "%s",  1, coords.ctype);
   if (strcmp (coords.ctype, "RA---PLY")) {
-    fprintf (stderr, "ERROR: wrong astrometric info in header\n");
+    gprint (GP_ERR, "ERROR: wrong astrometric info in header\n");
     return (FALSE);
   }
@@ -81,5 +81,5 @@
   gfits_scan (&header, "NSTARS", "%d", 1, &Nstars);
   if (Nstars == 0) {
-    fprintf (stderr, "no stars in file\n");
+    gprint (GP_ERR, "no stars in file\n");
     return (FALSE);
   }
@@ -88,5 +88,5 @@
   f = fopen (argv[1], "r");
   if (f == NULL) {
-    fprintf (stderr, "can't find data in file %s\n", argv[1]);
+    gprint (GP_ERR, "can't find data in file %s\n", argv[1]);
     return (FALSE);
   }
@@ -108,5 +108,5 @@
     nbytes = fread (buffer, 1, (BLOCK*BYTES_STAR), f);
     if (nbytes != BLOCK*BYTES_STAR) {
-      fprintf (stderr, "failed to read in stars (1)\n");
+      gprint (GP_ERR, "failed to read in stars (1)\n");
       free (Xvec.elements);
       free (Yvec.elements);
@@ -127,5 +127,5 @@
   nbytes = fread (buffer, 1, (Nbytes % (BLOCK*BYTES_STAR)), f);
   if (nbytes != (Nbytes % (BLOCK*BYTES_STAR))) {
-    fprintf (stderr, "ERROR: failed to read in stars (2)\n");
+    gprint (GP_ERR, "ERROR: failed to read in stars (2)\n");
     free (Xvec.elements);
     free (Yvec.elements);
@@ -144,5 +144,5 @@
   
   if (nstars != Nstars) {
-    fprintf (stderr, "ERROR: failed to read in all stars (%d of %d)\n", nstars, Nstars);
+    gprint (GP_ERR, "ERROR: failed to read in all stars (%d of %d)\n", nstars, Nstars);
     free (Xvec.elements);
     free (Yvec.elements);
