Changeset 8603
- Timestamp:
- Aug 25, 2006, 12:04:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psError.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.c
r8576 r8603 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-08-2 4 23:52:14$12 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-08-25 22:04:03 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 86 86 snprintf(msgName, MAX_STRING_LENGTH, "%s (%s:%d)", func, filename, lineno); 87 87 88 va_list argPtr; // variable list arguement pointer89 90 88 if (new) { 91 89 psErrorClear(); … … 93 91 94 92 // Get the variable list parameters to pass to logging function 93 va_list argPtr; // variable list arguement pointer 95 94 va_start(argPtr, format); 96 97 95 vsnprintf(errMsg, MAX_STRING_LENGTH, format, argPtr); 96 va_end(argPtr); 97 98 98 // Remove a single trailing \n from message -- it interferes with psErrorStackPrint 99 99 int len = strlen(errMsg); … … 113 113 #endif 114 114 115 // Clean up stack after variable argument has been used116 va_end(argPtr);117 115 118 116 psFree(err);
Note:
See TracChangeset
for help on using the changeset viewer.
