Changeset 4367 for trunk/psLib/src/sys/psLogMsg.c
- Timestamp:
- Jun 22, 2005, 5:50:29 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psLogMsg.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psLogMsg.c
r4321 r4367 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-2 0 22:42:30$14 * @version $Revision: 1.47 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-23 03:50:29 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 87 87 An psBool: TRUE if successful. 88 88 *****************************************************************************/ 89 psBool psLogSetDestination(const char *dest)89 bool psLogSetDestination(const char *dest) 90 90 { 91 91 char protocol[5]; … … 163 163 NULL. 164 164 *****************************************************************************/ 165 void psLogSetFormat(const char *f mt)165 void psLogSetFormat(const char *format) 166 166 { 167 167 // assume none. … … 173 173 174 174 // if fmt is NULL, no logging is desired. 175 if (f mt == NULL) {175 if (format == NULL) { 176 176 return; 177 177 } 178 178 179 179 // XXX: What is the purpose of this conditional. 180 if (strlen(f mt) == 0) {181 f mt = "THLNM";180 if (strlen(format) == 0) { 181 format = "THLNM"; 182 182 } 183 183 // Step through each character in the format string. For each letter 184 184 // in that string, set the appropriate logging. 185 185 186 for (const char *ptr = f mt; *ptr != '\0'; ptr++) {186 for (const char *ptr = format; *ptr != '\0'; ptr++) { 187 187 switch (*ptr) { 188 188 case 'H': … … 215 215 // XXX: If one must at least log error messages, why don't we set logMsg = true here? 216 216 if (!logMsg) { 217 psTrace("utils.logMsg", 1, "You must at least log error messages (You chose \"%s\")", f mt);217 psTrace("utils.logMsg", 1, "You must at least log error messages (You chose \"%s\")", format); 218 218 } 219 219 }
Note:
See TracChangeset
for help on using the changeset viewer.
