Index: trunk/Ohana/src/opihi/cmd.basic/sprintf.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.basic/sprintf.c	(revision 2843)
+++ trunk/Ohana/src/opihi/cmd.basic/sprintf.c	(revision 7917)
@@ -11,5 +11,5 @@
 
   if (argc < 3) {
-    fprintf (stderr, "USAGE: sprintf var format value value ...\n");
+    gprint (GP_ERR, "USAGE: sprintf var format value value ...\n");
     return (FALSE);
   }
@@ -26,9 +26,9 @@
     p2 = strchr (p1, '%');
     if (p2 == (char *) NULL) {
-      fprintf (stderr, "mismatch between format and values\n");
+      gprint (GP_ERR, "mismatch between format and values\n");
       return (FALSE);
     }
     if (strlen(q) + p2 - p1 > NCHAR) {
-      fprintf (stderr, "line too long");
+      gprint (GP_ERR, "line too long");
       return (FALSE);
     }
@@ -53,9 +53,9 @@
 	break;
       default:
-	fprintf (stderr, "syntax error in format (only e,f,s,d,c,x allowed)\n");
+	gprint (GP_ERR, "syntax error in format (only e,f,s,d,c,x allowed)\n");
 	return (FALSE);
     }
     if (strlen(q) + strlen(tmp) > NCHAR) {
-      fprintf (stderr, "line too long");
+      gprint (GP_ERR, "line too long");
       return (FALSE);
     }
@@ -66,5 +66,5 @@
   p2 = strchr (p1, '%');
   if (p2 != (char *) NULL) {
-    fprintf (stderr, "mismatch between format and values\n");
+    gprint (GP_ERR, "mismatch between format and values\n");
     return (FALSE);
   }
@@ -72,5 +72,5 @@
   p2 = p1 + strlen (p1);
   if (strlen(q) + p2 - p1 > NCHAR) {
-    fprintf (stderr, "line too long");
+    gprint (GP_ERR, "line too long");
     return (FALSE);
   }
