IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 22, 2005, 11:52:49 AM (21 years ago)
Author:
desonia
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psError.c

    r3264 r3476  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *
    12  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-02-17 19:26:24 $
     12 *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-03-22 21:52:49 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    103103
    104104    return code;
     105}
     106
     107void 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;
    105128}
    106129
Note: See TracChangeset for help on using the changeset viewer.