Changeset 1448 for trunk/psLib/src/sysUtils/psLogMsg.c
- Timestamp:
- Aug 9, 2004, 3:55:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psLogMsg.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psLogMsg.c
r1441 r1448 12 12 * @author George Gusciora, MHPCC 13 13 * 14 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08- 09 23:40:55$14 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-10 01:55:34 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 89 89 An integer specifying the old log destination. 90 90 *****************************************************************************/ 91 intpsLogSetDestination(const char *dest)91 bool psLogSetDestination(const char *dest) 92 92 { 93 93 char protocol[5]; … … 104 104 } 105 105 logDest = NULL; 106 return 0;106 return true; 107 107 } 108 108 109 109 if (sscanf(dest, "%4s:%256s", protocol, location) < 2) { 110 110 psError(__func__, "The specified destination, %s, is malformed.", dest); 111 return 1;111 return false; 112 112 } 113 113 … … 118 118 } 119 119 logDest = stderr; 120 return 0;120 return true; 121 121 } 122 122 if (strcmp(location, "stdout") == 0) { … … 125 125 } 126 126 logDest = stdout; 127 return 0;127 return true; 128 128 } 129 129 psError(__func__, "The location, %s, for protocol 'dest' is invalid.", location); … … 134 134 if (file == NULL) { 135 135 psError(__func__, "Could not open file '%s' for output.", location); 136 return 1;136 return false; 137 137 } 138 138 if (logDest != NULL && logDest != stderr && logDest != stdout) { … … 140 140 } 141 141 logDest = file; 142 return 0;142 return true; 143 143 } 144 144 145 145 psError(__func__, "Do not know how to handle the protocol '%s'.", protocol); 146 return 1;146 return false; 147 147 } 148 148
Note:
See TracChangeset
for help on using the changeset viewer.
