IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7588


Ignore:
Timestamp:
Jun 16, 2006, 3:19:39 PM (20 years ago)
Author:
drobbin
Message:

edited psLogMsgV to accept arguments ("",PS_LOG_ABORT,"",argPtr). Was segfaulting do to a removal of:
while(line != NULL). This was changed to a do-while loop and has been reverted to a modified while-loop at line#346

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r7587 r7588  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-06-16 23:01:10 $
     13 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-06-17 01:19:39 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    344344        // detect multiple lines in message and indent each line by 4 spaces.
    345345        char *line = strtok_r(msg, "\n", &msgPtr);
    346         do {
     346        while (line) {
    347347            write(logFD, "    ", 4);
    348348            write(logFD, line, strlen(line));
    349349            write(logFD, "\n", 1);
    350         } while ((line = strtok_r(NULL, "\n", &msgPtr)));
     350            line = strtok_r(NULL, "\n", &msgPtr);
     351        }
    351352    } else {
    352353        write(logFD, "\n", 1);
Note: See TracChangeset for help on using the changeset viewer.