IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

normalize psTrace() facility names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPeaks.c

    r7604 r8246  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-21 03:21:16 $
     8 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:07 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232                              pmPeakType type)
    3333{
    34     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     34    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    3535    pmPeak *tmpPeak = pmPeakAlloc(col, row, counts, type);
    3636
     
    4343    // XXX EAM : is this free appropriate?  (does psArrayAdd increment memory counter?)
    4444
    45     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     45    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    4646    return(list);
    4747}
     
    5757                                       psU32 row)
    5858{
    59     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     59    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    6060    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
    6161    PS_ASSERT_IMAGE_TYPE(image, PS_TYPE_F32, NULL);
     
    6666    }
    6767    tmpVector->n = image->numCols;
    68     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     68    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    6969    return(tmpVector);
    7070}
     
    7979                             psS32 y)
    8080{
    81     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     81    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    8282    if ((x >= valid.x0) &&
    8383            (x <= valid.x1) &&
    8484            (y >= valid.y0) &&
    8585            (y <= valid.y1)) {
    86         psTrace(__func__, 4, "---- %s(true) end ----\n", __func__);
     86        psTrace("psModules.objects", 4, "---- %s(true) end ----\n", __func__);
    8787        return(true);
    8888    }
    89     psTrace(__func__, 4, "---- %s(false) end ----\n", __func__);
     89    psTrace("psModules.objects", 4, "---- %s(false) end ----\n", __func__);
    9090    return(false);
    9191}
     
    102102                    pmPeakType type)
    103103{
    104     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     104    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    105105    static int id = 1;
    106106    pmPeak *tmp = (pmPeak *) psAlloc(sizeof(pmPeak));
     
    113113    psMemSetDeallocator(tmp, (psFreeFunc) peakFree);
    114114
    115     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     115    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    116116    return(tmp);
    117117}
     
    125125int pmPeaksCompareAscend (const void **a, const void **b)
    126126{
    127     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     127    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    128128    pmPeak *A = *(pmPeak **)a;
    129129    pmPeak *B = *(pmPeak **)b;
     
    133133    diff = A->counts - B->counts;
    134134    if (diff < FLT_EPSILON) {
    135         psTrace(__func__, 3, "---- %s(-1) end ----\n", __func__);
     135        psTrace("psModules.objects", 3, "---- %s(-1) end ----\n", __func__);
    136136        return (-1);
    137137    } else if (diff > FLT_EPSILON) {
    138         psTrace(__func__, 3, "---- %s(+1) end ----\n", __func__);
     138        psTrace("psModules.objects", 3, "---- %s(+1) end ----\n", __func__);
    139139        return (+1);
    140140    }
    141     psTrace(__func__, 3, "---- %s(0) end ----\n", __func__);
     141    psTrace("psModules.objects", 3, "---- %s(0) end ----\n", __func__);
    142142    return (0);
    143143}
     
    146146int pmPeaksCompareDescend (const void **a, const void **b)
    147147{
    148     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     148    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    149149    pmPeak *A = *(pmPeak **)a;
    150150    pmPeak *B = *(pmPeak **)b;
     
    154154    diff = A->counts - B->counts;
    155155    if (diff < FLT_EPSILON) {
    156         psTrace(__func__, 3, "---- %s(+1) end ----\n", __func__);
     156        psTrace("psModules.objects", 3, "---- %s(+1) end ----\n", __func__);
    157157        return (+1);
    158158    } else if (diff > FLT_EPSILON) {
    159         psTrace(__func__, 3, "---- %s(-1) end ----\n", __func__);
     159        psTrace("psModules.objects", 3, "---- %s(-1) end ----\n", __func__);
    160160        return (-1);
    161161    }
    162     psTrace(__func__, 3, "---- %s(0) end ----\n", __func__);
     162    psTrace("psModules.objects", 3, "---- %s(0) end ----\n", __func__);
    163163    return (0);
    164164}
     
    178178                            psF32 threshold)
    179179{
    180     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     180    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    181181    PS_ASSERT_VECTOR_NON_NULL(vector, NULL);
    182182    PS_ASSERT_VECTOR_NON_EMPTY(vector, NULL);
     
    198198            tmpVector = psVectorAlloc(0, PS_TYPE_U32);
    199199        }
    200         psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     200        psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    201201        return(tmpVector);
    202202    }
     
    264264    }
    265265
    266     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     266    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    267267    return(tmpVector);
    268268}
     
    292292                          psF32 threshold)
    293293{
    294     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     294    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    295295    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
    296296    PS_ASSERT_IMAGE_TYPE(image, PS_TYPE_F32, NULL);
    297297    if ((image->numRows == 1) || (image->numCols == 1)) {
    298298        psError(PS_ERR_UNKNOWN, true, "Currently, input image must have at least 2 rows and 2 columns.");
    299         psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     299        psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    300300        return(NULL);
    301301    }
     
    361361    //
    362362    if (image->numRows == 1) {
    363         psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     363        psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    364364        return(list);
    365365    }
     
    484484    psFree (tmpRow);
    485485    psFree (row1);
    486     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     486    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    487487    return(list);
    488488}
     
    507507                    const psRegion valid)
    508508{
    509     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     509    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    510510    PS_ASSERT_PTR_NON_NULL(peaks, NULL);
    511511
     
    525525    }
    526526
    527     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     527    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    528528    return(peaks);
    529529}
     
    537537    const psRegion valid)
    538538{
    539     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     539    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    540540    PS_ASSERT_PTR_NON_NULL(peaks, NULL);
    541541
     
    553553        psArrayAdd (output, 200, tmpPeak);
    554554    }
    555     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     555    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    556556    return(output);
    557557}
Note: See TracChangeset for help on using the changeset viewer.