IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8603


Ignore:
Timestamp:
Aug 25, 2006, 12:04:03 PM (20 years ago)
Author:
Paul Price
Message:

Putting va_list code together.

File:
1 edited

Legend:

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

    r8576 r8603  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *
    12  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-08-24 23:52:14 $
     12 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-08-25 22:04:03 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8686    snprintf(msgName, MAX_STRING_LENGTH, "%s (%s:%d)", func, filename, lineno);
    8787
    88     va_list argPtr;             // variable list arguement pointer
    89 
    9088    if (new) {
    9189        psErrorClear();
     
    9391
    9492    // Get the variable list parameters to pass to logging function
     93    va_list argPtr;             // variable list arguement pointer
    9594    va_start(argPtr, format);
    96 
    9795    vsnprintf(errMsg, MAX_STRING_LENGTH, format, argPtr);
     96    va_end(argPtr);
     97
    9898    // Remove a single trailing \n from message -- it interferes with psErrorStackPrint
    9999    int len = strlen(errMsg);
     
    113113    #endif
    114114
    115     // Clean up stack after variable argument has been used
    116     va_end(argPtr);
    117115
    118116    psFree(err);
Note: See TracChangeset for help on using the changeset viewer.