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/camera/pmFPAConstruct.c

    r7719 r8246  
    244244    }
    245245
    246     psTrace(__func__, 5, "Looking up %s in the CONTENTS.\n", contentKey);
     246    psTrace("psModules.camera", 5, "Looking up %s in the CONTENTS.\n", contentKey);
    247247    const char *content = psMetadataLookupStr(&mdok, contents, contentKey);
    248248    if (!mdok || !content || strlen(content) == 0) {
     
    593593            // Need to look up what chip we have.
    594594            psString chipName = phuNameFromHeader("CHIP.NAME", fileInfo, header);
    595             psTrace(__func__, 5, "This is chip %s\n", chipName);
     595            psTrace("psModules.camera", 5, "This is chip %s\n", chipName);
    596596            int chipNum = pmFPAFindChip(fpa, chipName); // Chip number
    597597            if (chipNum == -1) {
     
    794794    PS_ASSERT_PTR_NON_NULL(fpa,);
    795795
    796     psTrace(__func__, 1, "FPA:\n");
     796    psTrace("psModules.camera", 1, "FPA:\n");
    797797    if (fpa->hdu) {
    798798        pmHDUPrint(fd, fpa->hdu, 2, header);
     
    805805    // Iterate over the FPA
    806806    for (int i = 0; i < chips->n; i++) {
    807         psTrace(__func__, 3, "Chip: %d\n", i);
     807        psTrace("psModules.camera", 3, "Chip: %d\n", i);
    808808        pmChip *chip = chips->data[i]; // The chip
    809809        if (chip->hdu) {
     
    817817        psArray *cells = chip->cells;   // Array of cells
    818818        for (int j = 0; j < cells->n; j++) {
    819             psTrace(__func__, 5, "Cell: %d\n", j);
     819            psTrace("psModules.camera", 5, "Cell: %d\n", j);
    820820            pmCell *cell = cells->data[j]; // The cell
    821821            if (cell->hdu) {
     
    829829            for (int k = 0; k < readouts->n; k++) {
    830830                pmReadout *readout = readouts->data[k]; // The readout
    831                 psTrace(__func__, 6, "Readout %d:\n", k);
    832                 psTrace(__func__, 7, "row0: %d\n", readout->row0);
    833                 psTrace(__func__, 7, "col0: %d\n", readout->col0);
     831                psTrace("psModules.camera", 6, "Readout %d:\n", k);
     832                psTrace("psModules.camera", 7, "row0: %d\n", readout->row0);
     833                psTrace("psModules.camera", 7, "col0: %d\n", readout->col0);
    834834                psImage *image = readout->image; // The image
    835835                psList *bias = readout->bias; // The list of bias images
    836836                if (image) {
    837                     psTrace(__func__, 7, "Image: [%d:%d,%d:%d] (%dx%d)\n", image->col0, image->col0 +
     837                    psTrace("psModules.camera", 7, "Image: [%d:%d,%d:%d] (%dx%d)\n", image->col0, image->col0 +
    838838                            image->numCols, image->row0, image->row0 + image->numRows, image->numCols,
    839839                            image->numRows);
     
    843843                    psImage *biasImage = NULL; // Bias image from iteration
    844844                    while ((biasImage = psListGetAndIncrement(biasIter))) {
    845                         psTrace(__func__, 7, "Bias:  [%d:%d,%d:%d] (%dx%d)\n", biasImage->col0,
     845                        psTrace("psModules.camera", 7, "Bias:  [%d:%d,%d:%d] (%dx%d)\n", biasImage->col0,
    846846                                biasImage->col0 + biasImage->numCols, biasImage->row0,
    847847                                biasImage->row0 + biasImage->numRows, biasImage->numCols, biasImage->numRows);
Note: See TracChangeset for help on using the changeset viewer.