IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pclient/reset.c

    r4762 r7917  
    77
    88  if (argc != 1) {
    9     fprintf (stderr, "USAGE: reset\n");
    10     fprintf (GetOutfile(), "STATUS -1\n");
     9    gprint (GP_ERR, "USAGE: reset\n");
     10    gprint (GP_LOG, "STATUS -1\n");
    1111    return (FALSE);
    1212  }
    1313 
    1414  if (ChildStatus == PCLIENT_NONE) {
    15     fprintf (stderr, "no child process, cannot reset\n");
    16     fprintf (GetOutfile(), "STATUS 2\n");
     15    gprint (GP_ERR, "no child process, cannot reset\n");
     16    gprint (GP_LOG, "STATUS 2\n");
    1717    return (TRUE);
    1818  }
     
    4242
    4343    /* total failure, don't reset */
    44     fprintf (stderr, "child process %d is hung, cannot reset\n", ChildPID);
    45     fprintf (GetOutfile(), "STATUS 0\n");
     44    gprint (GP_ERR, "child process %d is hung, cannot reset\n", ChildPID);
     45    gprint (GP_LOG, "STATUS 0\n");
    4646    return (FALSE);
    4747  }
     
    6262  ChildExitStatus = 0;
    6363
    64   fprintf (GetOutfile(), "STATUS 1\n");
     64  gprint (GP_LOG, "STATUS 1\n");
    6565  return (TRUE);
    6666}
Note: See TracChangeset for help on using the changeset viewer.