Changeset 4315 for trunk/psLib/src/sys
- Timestamp:
- Jun 17, 2005, 4:30:50 PM (21 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.c
r3682 r4315 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 4-07 20:27:41$12 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-18 02:30:50 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 177 177 178 178 } 179 void psErrorStackPrint(FILE *fd, const char *f mt, ...)179 void psErrorStackPrint(FILE *fd, const char *format, ...) 180 180 { 181 181 va_list argPtr; // variable list arguement pointer 182 182 183 183 // Get the variable list parameters to pass to logging function 184 va_start(argPtr, f mt);185 186 psErrorStackPrintV(fd,f mt,argPtr);184 va_start(argPtr, format); 185 186 psErrorStackPrintV(fd,format,argPtr); 187 187 188 188 va_end(argPtr); 189 189 } 190 190 191 void psErrorStackPrintV(FILE *fd, const char *f mt, va_list va)191 void psErrorStackPrintV(FILE *fd, const char *format, va_list va) 192 192 { 193 193 … … 195 195 196 196 if (errorStackSize > 0) { 197 vfprintf(fd,f mt,va);197 vfprintf(fd,format,va); 198 198 199 199 for (psS32 lcv=0;lcv<errorStackSize;lcv++) { -
trunk/psLib/src/sys/psError.h
r4190 r4315 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 09 19:26:48$14 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-18 02:30:50 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 86 86 void psErrorStackPrint( 87 87 FILE* fd, ///< destination file descriptor 88 const char* f mt, ///< printf-style format of header line88 const char* format, ///< printf-style format of header line 89 89 ... ///< any parameters required in fmt 90 90 ); … … 101 101 void psErrorStackPrintV( 102 102 FILE* fd, ///< destination file descriptor 103 const char* f mt, ///< printf-style format of header line103 const char* format, ///< printf-style format of header line 104 104 va_list va ///< any parameters required in fmt 105 105 );
Note:
See TracChangeset
for help on using the changeset viewer.
