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

    r4450 r4575  
    1212  switch (status) {
    1313    case 0:
    14       fprintf (stderr, "host %s is down\n", host[0].hostname);
     14      if (VerboseMode()) fprintf (stderr, "host %s is down\n", host[0].hostname);
    1515
    1616      /* if host has a job, job is dead, push to Pending */
     
    3333     
    3434    case -1:
    35       fprintf (stderr, "host %s is not responding\n", host[0].hostname);
     35      if (VerboseMode()) fprintf (stderr, "host %s is not responding\n", host[0].hostname);
    3636      /*** do we mark this in some way (HUNG) ? ***/
    3737      PutHost (host, host[0].stack, STACK_BOTTOM);
     
    4040
    4141    default:
    42       /* fprintf (stderr, "host %s is alive\n", host[0].hostname); */
     42      if (VerboseMode()) fprintf (stderr, "host %s is alive\n", host[0].hostname);
    4343      PutHost (host, host[0].stack, STACK_BOTTOM);
    4444      FreeIOBuffer (&buffer);
    4545      return (TRUE);
    4646  }
    47   fprintf (stderr, "programming error (Check Host)\n");
     47  fprintf (stderr, "programming error: should not reach here (Check Host)\n");
    4848  return (FALSE);
    4949}
Note: See TracChangeset for help on using the changeset viewer.