Changeset 3476 for trunk/psLib/src/sysUtils/psError.c
- Timestamp:
- Mar 22, 2005, 11:52:49 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psError.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psError.c
r3264 r3476 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 2-17 19:26:24$12 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-03-22 21:52:49 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 103 103 104 104 return code; 105 } 106 107 void p_psWarning(const char* file, 108 int lineno, 109 const char* func, 110 const char* fmt, 111 ...) 112 { 113 char msgName[1024]; 114 115 snprintf(msgName,1024,"%s (%s:%d)",func,file,lineno); 116 117 va_list argPtr; // variable list argument pointer 118 119 // Get the variable list parameters to pass to logging function 120 va_start(argPtr, fmt); 121 122 psLogMsgV(msgName, PS_LOG_WARN, fmt, argPtr); 123 124 // Clean up stack after variable argument has been used 125 va_end(argPtr); 126 127 return; 105 128 } 106 129
Note:
See TracChangeset
for help on using the changeset viewer.
