Changeset 8604 for trunk/psLib/src/sys/psLogMsg.c
- Timestamp:
- Aug 25, 2006, 12:06:08 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psLogMsg.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psLogMsg.c
r8245 r8604 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.6 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-08- 09 02:26:44$13 * @version $Revision: 1.62 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-08-25 22:06:08 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 339 339 write(logFD, head, strlen(head)); 340 340 if (logMsg) { 341 char msg[1024]; 341 psString msg = NULL; // Message to print 342 psStringAppendV(&msg, format, ap); 343 344 // detect multiple lines in message and indent each line by 4 spaces. 342 345 char* msgPtr; 343 vsnprintf(msg,1024, format, ap); // create message344 345 // detect multiple lines in message and indent each line by 4 spaces.346 346 char *line = strtok_r(msg, "\n", &msgPtr); 347 347 while (line) {
Note:
See TracChangeset
for help on using the changeset viewer.
