IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 5:20:08 PM (20 years ago)
Author:
jhoblitt
Message:

change psError() to call p_psTrace() directly

File:
1 edited

Legend:

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

    r8226 r8247  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *
    12  *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-08-08 01:53:31 $
     12 *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-08-09 03:20:08 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    105105    #ifndef PS_NO_TRACE
    106106    // Call tracing function with PS_LOG_ERROR level
    107     psString facil = NULL;
    108     psStringAppend(&facil, "err.%s", func);
    109     psTrace(facil, PS_LOG_ERROR, "%s : %s", err->name, err->msg);
    110     psFree(facil);
     107    // p_psTrace() automatically appends the the function name to the facility
     108    // for us
     109    p_psTrace(__FILE__, __LINE__, func, "err", PS_LOG_ERROR, "%s : %s", err->name, err->msg);
    111110    #endif
    112111
Note: See TracChangeset for help on using the changeset viewer.