Changeset 7588 for trunk/psLib/src/sys/psLogMsg.c
- Timestamp:
- Jun 16, 2006, 3:19:39 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
r7587 r7588 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.5 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-06-1 6 23:01:10$13 * @version $Revision: 1.57 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-06-17 01:19:39 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 344 344 // detect multiple lines in message and indent each line by 4 spaces. 345 345 char *line = strtok_r(msg, "\n", &msgPtr); 346 do{346 while (line) { 347 347 write(logFD, " ", 4); 348 348 write(logFD, line, strlen(line)); 349 349 write(logFD, "\n", 1); 350 } while ((line = strtok_r(NULL, "\n", &msgPtr))); 350 line = strtok_r(NULL, "\n", &msgPtr); 351 } 351 352 } else { 352 353 write(logFD, "\n", 1);
Note:
See TracChangeset
for help on using the changeset viewer.
