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/concepts/pmConceptsWrite.c

    r7835 r8246  
    140140    switch (item->type) {
    141141    case PS_DATA_STRING:
    142         psTrace(__func__, 9, "Writing header %s: %s\n", keyword, item->data.V);
     142        psTrace("psModules.concepts", 9, "Writing header %s: %s\n", keyword, item->data.V);
    143143        return psMetadataAddStr(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    144144                                item->data.V);
    145145    case PS_DATA_S32:
    146         psTrace(__func__, 9, "Writing header %s: %d\n", keyword, item->data.S32);
     146        psTrace("psModules.concepts", 9, "Writing header %s: %d\n", keyword, item->data.S32);
    147147        return psMetadataAddS32(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    148148                                item->data.S32);
    149149    case PS_DATA_F32:
    150         psTrace(__func__, 9, "Writing header %s: %f\n", keyword, item->data.F32);
     150        psTrace("psModules.concepts", 9, "Writing header %s: %f\n", keyword, item->data.F32);
    151151        return psMetadataAddF32(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    152152                                item->data.F32);
    153153    case PS_DATA_F64:
    154         psTrace(__func__, 9, "Writing header %s: %f\n", keyword, item->data.F64);
     154        psTrace("psModules.concepts", 9, "Writing header %s: %f\n", keyword, item->data.F64);
    155155        return psMetadataAddF64(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    156156                                item->data.F64);
    157157    case PS_DATA_REGION: {
    158158            psString region = psRegionToString(*(psRegion*)item->data.V);
    159             psTrace(__func__, 9, "Writing header %s: %s\n", keyword, region);
     159            psTrace("psModules.concepts", 9, "Writing header %s: %s\n", keyword, region);
    160160            bool result = psMetadataAddStr(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    161161                                           region);
     
    252252            psString source = psMetadataLookupStr(&mdok, cell->config, nameSource); // The source
    253253            if (mdok && strlen(source) > 0) {
    254                 psTrace(__func__, 8, "%s is %s\n", nameSource, source);
     254                psTrace("psModules.concepts", 8, "%s is %s\n", nameSource, source);
    255255                if (strcasecmp(source, "HEADER") == 0) {
    256256                    if (cameraItem->type != PS_DATA_STRING) {
     
    259259                        continue;
    260260                    }
    261                     psTrace(__func__, 8, "Writing %s to header %s\n", name, cameraItem->data.V);
     261                    psTrace("psModules.concepts", 8, "Writing %s to header %s\n", name, cameraItem->data.V);
    262262                    writeHeader(hdu, cameraItem->data.V, formatted);
    263263                } else if (strcasecmp(source, "VALUE") == 0) {
    264                     psTrace(__func__, 8, "Checking %s against camera format.\n", name);
     264                    psTrace("psModules.concepts", 8, "Checking %s against camera format.\n", name);
    265265                    if (! compareConcepts(formatted, cameraItem)) {
    266266                        psLogMsg(__func__, PS_LOG_WARN, "Concept %s is specified by value in the camera "
     
    384384                continue;
    385385            }
    386             psTrace(__func__, 3, "Writing %s to header %s\n", name, headerItem->data.V);
     386            psTrace("psModules.concepts", 3, "Writing %s to header %s\n", name, headerItem->data.V);
    387387            psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts
    388388            psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell);
Note: See TracChangeset for help on using the changeset viewer.