IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2005, 11:01:59 AM (21 years ago)
Author:
eugene
Message:

cleaned up status / error messages, added verbose option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/GetJobOutput.c

    r4573 r4575  
    3838  switch (status) {
    3939    case -1:
    40       fprintf (stderr, "host %s is not responding\n", host[0].hostname);
     40      if (VerboseMode()) fprintf (stderr, "host %s is not responding\n", host[0].hostname);
    4141      return (FALSE);
    4242
    4343    case 0:
    44       fprintf (stderr, "host %s is down\n", host[0].hostname);
     44      if (VerboseMode()) fprintf (stderr, "host %s is down\n", host[0].hostname);
    4545      return (FALSE);
    4646
    4747    default:
    48       fprintf (stderr, "message received (GetJobOutput : %s)\n", cmd); 
     48      if (VerboseMode()) fprintf (stderr, "message received (GetJobOutput : %s)\n", cmd); 
    4949      /* drop extra bytes from pclient (not pclient:job) */
    5050      buffer[0].Nbuffer = Nstart + Nbytes;
     
    5555  }
    5656
    57   fprintf (stderr, "programming error in GetJobOutput (should not reach here)\n");
     57  fprintf (stderr, "programming error: should not reach here (GetJobOutput)\n");
    5858  exit (1);
    5959}
Note: See TracChangeset for help on using the changeset viewer.