- Timestamp:
- 05/28/10 09:54:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Chief/Chief.cc
r190 r218 72 72 FILE *RunNumFile = fopen(Chief->RunNumFilename, "r+"); 73 73 if(RunNumFile == NULL) { 74 Chief-> State(Chief->ERROR, "Could not open file '%s' that contains the last run number (%s)", Chief->RunNumFilename, strerror(errno));74 Chief->Message(Chief->ERROR, "Could not open file '%s' that contains the last run number (%s)", Chief->RunNumFilename, strerror(errno)); 75 75 OK = false; 76 76 } … … 78 78 // Read last run number 79 79 if(fscanf(RunNumFile,"%d", &RunNumber) != 1 ) { 80 Chief-> State(Chief->ERROR, "Could not read run number from file '%s'", Chief->RunNumFilename);80 Chief->Message(Chief->ERROR, "Could not read run number from file '%s'", Chief->RunNumFilename); 81 81 OK = false; 82 82 } … … 86 86 rewind(RunNumFile); 87 87 if(OK && fprintf(RunNumFile,"%.8u ",RunNumber) < 0) { 88 Chief-> State(Chief->ERROR, "Could not write to run number file '%s'", Chief->RunNumFilename);88 Chief->Message(Chief->ERROR, "Could not write to run number file '%s'", Chief->RunNumFilename); 89 89 OK = false; 90 90 } … … 92 92 // Close run number file 93 93 if(fclose(RunNumFile) != 0) { 94 Chief-> State(Chief->ERROR, "Could not close run number file '%s'", Chief->RunNumFilename);94 Chief->Message(Chief->ERROR, "Could not close run number file '%s'", Chief->RunNumFilename); 95 95 OK = false; 96 96 } … … 102 102 setData(RunNumber); 103 103 Chief->LastRunNumber->updateService(); 104 Chief-> State(Chief->INFO, "Dispatched run number %d", RunNumber);104 Chief->Message(Chief->INFO, "Dispatched run number %d", RunNumber); 105 105 } 106 106
Note:
See TracChangeset
for help on using the changeset viewer.