IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10657


Ignore:
Timestamp:
Dec 12, 2006, 9:51:35 AM (20 years ago)
Author:
eugene
Message:

debugs

File:
1 edited

Legend:

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

    r10652 r10657  
    11# include "pcontrol.h"
     2# define DEBUG 1
    23
    34int CheckDoneHost (Host *host) {
     
    1617  switch (status) {
    1718    case PCLIENT_DOWN:
    18       if (VerboseMode()) gprint (GP_ERR, "host %s is down\n", host[0].hostname);
     19      if (DEBUG || VerboseMode()) gprint (GP_ERR, "host %s is down\n", host[0].hostname);
    1920      /* DONE host does not have an incomplete job */
    2021      HarvestHost (host[0].pid);
     
    2728      // XXX should this be DONE or DOWN?/
    2829      PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
    29       if (VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
     30      if (DEBUG || VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
    3031      FreeIOBuffer (&buffer);
    3132      return (FALSE);
     
    4950     
    5051    case 0:
    51       if (VerboseMode()) gprint (GP_ERR, "reset failed\n");
     52      if (DEBUG || VerboseMode()) gprint (GP_ERR, "reset failed\n");
    5253      PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
    5354      FreeIOBuffer (&buffer);
     
    5657    case 1:
    5758    case 2:
    58       if (VerboseMode()) gprint (GP_ERR, "successful reset\n");
     59      if (DEBUG || VerboseMode()) gprint (GP_ERR, "successful reset\n");
    5960      PutHost (host, PCONTROL_HOST_IDLE, STACK_BOTTOM);
    6061      FreeIOBuffer (&buffer);
Note: See TracChangeset for help on using the changeset viewer.