Changeset 4342 for trunk/psLib/src/sys/psError.c
- Timestamp:
- Jun 21, 2005, 4:05:41 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psError.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.c
r4315 r4342 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.2 5$ $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 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 67 67 } 68 68 69 psErrorCode p_psError(const char* file ,70 int lineno,69 psErrorCode p_psError(const char* filename, 70 unsigned int lineno, 71 71 const char* func, 72 72 psErrorCode code, 73 psBool new,74 const char* f mt,73 bool new, 74 const char* format, 75 75 ...) 76 76 { … … 79 79 char msgName[1024]; 80 80 81 snprintf(msgName,1024,"%s (%s:%d)",func,file ,lineno);81 snprintf(msgName,1024,"%s (%s:%d)",func,filename,lineno); 82 82 83 83 va_list argPtr; // variable list arguement pointer … … 88 88 89 89 // Get the variable list parameters to pass to logging function 90 va_start(argPtr, f mt);91 92 vsnprintf(errMsg,2048,f mt,argPtr);90 va_start(argPtr, format); 91 92 vsnprintf(errMsg,2048,format,argPtr); 93 93 err = psErrAlloc(msgName,code,errMsg); 94 94 pushErrorStack(err);
Note:
See TracChangeset
for help on using the changeset viewer.
