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/CheckHost.c

    r4772 r7917  
    1212  switch (status) {
    1313    case 0:
    14       if (VerboseMode()) fprintf (stderr, "host %s is down\n", host[0].hostname);
     14      if (VerboseMode()) gprint (GP_ERR, "host %s is down\n", host[0].hostname);
    1515      /* if host has a job, job is dead, return to Pending */
    1616      job = (Job *) host[0].job;
     
    2525     
    2626    case -1:
    27       if (VerboseMode()) fprintf (stderr, "host %s is not responding\n", host[0].hostname);
     27      if (VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
    2828      /*** do we mark this in some way (HUNG) ? ***/
    2929      PutHost (host, host[0].stack, STACK_BOTTOM);
     
    3636      return (TRUE);
    3737  }
    38   fprintf (stderr, "programming error: should not reach here (Check Host)\n");
     38  gprint (GP_ERR, "programming error: should not reach here (Check Host)\n");
    3939  return (FALSE);
    4040}
Note: See TracChangeset for help on using the changeset viewer.