IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1741


Ignore:
Timestamp:
Sep 8, 2004, 3:42:37 PM (22 years ago)
Author:
gusciora
Message:

...

Location:
trunk/psLib
Files:
3 edited

Legend:

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

    r1740 r1741  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-09-09 01:41:24 $
     11 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-09 01:42:37 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    237237    }
    238238
     239    // If the component name has no leading dot, then supply it.
    239240    if (comp[0] != '.') {
    240241        compName = (char *) psAlloc(10 + strlen(comp));
  • trunk/psLib/src/sysUtils/psTrace.c

    r1739 r1741  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-09-09 01:33:28 $
     11 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-09 01:41:24 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    239239    if (comp[0] != '.') {
    240240        compName = (char *) psAlloc(10 + strlen(comp));
    241         compName[0] = '.';
     241        strcpy(compName, ".");
    242242        compName = strcat(compName, comp);
    243243    } else {
     
    357357    if (name[0] != '.') {
    358358        compName = (char *) psAlloc(10 + strlen(name));
    359         compName[0] = '.';
     359        strcpy(compName, ".");
    360360        compName = strcat(compName, name);
    361361        traceLevel = doGetTraceLevel(compName);
  • trunk/psLib/test/sysUtils/tst_psTrace.c

    r1736 r1741  
    307307    (void)psTraceSetLevel(".c.c", 5);
    308308
    309     if ((psTraceGetLevel(".")!=PS_UNKNOWN_TRACE_LEVEL) ||
    310             (psTraceGetLevel("a")!=PS_UNKNOWN_TRACE_LEVEL) ||
    311             (psTraceGetLevel("b")!=PS_UNKNOWN_TRACE_LEVEL) ||
    312             (psTraceGetLevel("c")!=PS_UNKNOWN_TRACE_LEVEL) ||
    313             (psTraceGetLevel("a.a")!=PS_UNKNOWN_TRACE_LEVEL) ||
    314             (psTraceGetLevel("a.b")!=PS_UNKNOWN_TRACE_LEVEL) ||
    315             (psTraceGetLevel("b.a")!=PS_UNKNOWN_TRACE_LEVEL) ||
    316             (psTraceGetLevel("b.b")!=PS_UNKNOWN_TRACE_LEVEL) ||
    317             (psTraceGetLevel("c.a")!=PS_UNKNOWN_TRACE_LEVEL) ||
    318             (psTraceGetLevel("c.b")!=PS_UNKNOWN_TRACE_LEVEL) ||
    319             (psTraceGetLevel("c.c")!=PS_UNKNOWN_TRACE_LEVEL)) {
     309    if ((psTraceGetLevel(".")!=9) ||
     310            (psTraceGetLevel("a")!=8) ||
     311            (psTraceGetLevel("b")!=7) ||
     312            (psTraceGetLevel("c")!=5) ||
     313            (psTraceGetLevel("a.a")!=4) ||
     314            (psTraceGetLevel("a.b")!=3) ||
     315            (psTraceGetLevel("b.a")!=2) ||
     316            (psTraceGetLevel("b.b")!=1) ||
     317            (psTraceGetLevel("c.a")!=0) ||
     318            (psTraceGetLevel("c.b")!=3) ||
     319            (psTraceGetLevel("c.c")!=5)) {
    320320        return 1;
    321321    }
Note: See TracChangeset for help on using the changeset viewer.