Changeset 10657
- Timestamp:
- Dec 12, 2006, 9:51:35 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c
r10652 r10657 1 1 # include "pcontrol.h" 2 # define DEBUG 1 2 3 3 4 int CheckDoneHost (Host *host) { … … 16 17 switch (status) { 17 18 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); 19 20 /* DONE host does not have an incomplete job */ 20 21 HarvestHost (host[0].pid); … … 27 28 // XXX should this be DONE or DOWN?/ 28 29 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); 30 31 FreeIOBuffer (&buffer); 31 32 return (FALSE); … … 49 50 50 51 case 0: 51 if ( VerboseMode()) gprint (GP_ERR, "reset failed\n");52 if (DEBUG || VerboseMode()) gprint (GP_ERR, "reset failed\n"); 52 53 PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM); 53 54 FreeIOBuffer (&buffer); … … 56 57 case 1: 57 58 case 2: 58 if ( VerboseMode()) gprint (GP_ERR, "successful reset\n");59 if (DEBUG || VerboseMode()) gprint (GP_ERR, "successful reset\n"); 59 60 PutHost (host, PCONTROL_HOST_IDLE, STACK_BOTTOM); 60 61 FreeIOBuffer (&buffer);
Note:
See TracChangeset
for help on using the changeset viewer.
