IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4342 for trunk/psLib/src/sys


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

* empty log message *

Location:
trunk/psLib/src/sys
Files:
3 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);
  • trunk/psLib/src/sys/psError.h

    r4315 r4342  
    1212 *  @author Eric Van Alst, MHPCC
    1313 *
    14  *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-18 02:30:50 $
     14 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-22 02:05:41 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    148148 */
    149149psErrorCode p_psError(
    150     const char* file,                  ///< file name
    151     int lineno,                        ///< line number in file
     150    const char* filename,              ///< file name
     151    unsigned int lineno,               ///< line number in file
    152152    const char* func,                  ///< function name
    153153    psErrorCode code,                  ///< Error class code
    154     psBool new,                        ///< true if error originates at this location
    155     const char* fmt,                   ///< printf-style format of header line
     154    bool new,                          ///< true if error originates at this location
     155    const char* format,                ///< printf-style format of header line
    156156    ...                                ///< any parameters required in fmt
    157157);
  • trunk/psLib/src/sys/psType.h

    r4293 r4342  
    1010*  @author Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-06-17 00:11:08 $
     12*  @version $Revision: 1.35 $ $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
     
    7171#endif // !SWIG
    7272
     73typedef char* psString;                ///< string value
    7374typedef void* psPtr;                   ///< void pointer
    7475typedef bool psBool;                   ///< boolean value
Note: See TracChangeset for help on using the changeset viewer.