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/pcontrol/GetJobOutput.c

    r4762 r7917  
    4040  switch (status) {
    4141    case -1:
    42       if (VerboseMode()) fprintf (stderr, "host %s is not responding\n", host[0].hostname);
     42      if (VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
    4343      return (FALSE);
    4444
    4545    case 0:
    46       if (VerboseMode()) fprintf (stderr, "host %s is down\n", host[0].hostname);
     46      if (VerboseMode()) gprint (GP_ERR, "host %s is down\n", host[0].hostname);
    4747      return (FALSE);
    4848
    4949    default:
    50       if (VerboseMode()) fprintf (stderr, "message received (GetJobOutput : %s)\n", cmd); 
     50      if (VerboseMode()) gprint (GP_ERR, "message received (GetJobOutput : %s)\n", cmd); 
    5151      /* drop extra bytes from pclient (not pclient:job) */
    5252      buffer[0].Nbuffer = Nstart + Nbytes;
     
    5757  }
    5858
    59   fprintf (stderr, "programming error: should not reach here (GetJobOutput)\n");
     59  gprint (GP_ERR, "programming error: should not reach here (GetJobOutput)\n");
    6060  exit (1);
    6161}
Note: See TracChangeset for help on using the changeset viewer.