IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 21, 2005, 4:05:41 PM (21 years ago)
Author:
drobbin
Message:

* empty log message *

File:
1 edited

Legend:

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

    r4315 r4342  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *
    12  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-18 02:30:50 $
     12 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-06-22 02:05:41 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6767}
    6868
    69 psErrorCode p_psError(const char* file,
    70                       int lineno,
     69psErrorCode p_psError(const char* filename,
     70                      unsigned int lineno,
    7171                      const char* func,
    7272                      psErrorCode code,
    73                       psBool new,
    74                       const char* fmt,
     73                      bool new,
     74                      const char* format,
    7575                      ...)
    7676{
     
    7979    char msgName[1024];
    8080
    81     snprintf(msgName,1024,"%s (%s:%d)",func,file,lineno);
     81    snprintf(msgName,1024,"%s (%s:%d)",func,filename,lineno);
    8282
    8383    va_list argPtr;             // variable list arguement pointer
     
    8888
    8989    // Get the variable list parameters to pass to logging function
    90     va_start(argPtr, fmt);
    91 
    92     vsnprintf(errMsg,2048,fmt,argPtr);
     90    va_start(argPtr, format);
     91
     92    vsnprintf(errMsg,2048,format,argPtr);
    9393    err = psErrAlloc(msgName,code,errMsg);
    9494    pushErrorStack(err);
Note: See TracChangeset for help on using the changeset viewer.