IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2005, 3:33:12 PM (21 years ago)
Author:
drobbin
Message:

Fixed psTrace to allow levels of 10 and higher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sys/tst_psTrace.c

    r5112 r5118  
    6969        lev = psTraceGetLevel(".NODE00");
    7070        if (lev != i) {
    71             fprintf(stderr,"ERROR: (.NODE00) expected trace level was %d, actual was %d\n",
     71            fprintf(stderr,
     72                    "ERROR: (.NODE00) expected trace level was %d, actual was %d\n",
    7273                    i, lev);
    7374            return 2;
     
    8889        lev = psTraceGetLevel(".NODE00.NODE01");
    8990        if (lev != i) {
    90             fprintf(stderr,"ERROR: (.NODE00.NODE01) expected trace level was %d, actual was %d\n",
     91            fprintf(stderr,
     92                    "ERROR: (.NODE00.NODE01) expected trace level was %d, actual was %d\n",
    9193                    i, lev);
    9294            return 4;
     
    225227        (void)psTraceSetLevel(".a.b", 7);
    226228        psTrace(".a.b", 5, "(2) This message should be displayed (%x)\n",
     229                0xbeefface);
     230        (void)psTraceSetLevel(".a.b.c", 12);
     231        psTrace(".a.b.c", 11, "(3) This message should be displayed (%x)\n",
    227232                0xbeefface);
    228233
Note: See TracChangeset for help on using the changeset viewer.