IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2007, 1:15:12 PM (19 years ago)
Author:
Paul Price
Message:

Replacing psLogMsg with psWarning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMosaic.c

    r15288 r15477  
    704704    psArray *readouts = cell->readouts; // The array of readouts
    705705    if (readouts->n > 1) {
    706         psLogMsg(__func__, PS_LOG_WARN, "Cell contains more than one readout (%ld) --- only the first will "
    707                  "be mosaicked.\n", readouts->n);
     706        psWarning("Cell contains more than one readout (%ld) --- only the first will be mosaicked.\n",
     707                  readouts->n);
    708708    }
    709709    pmReadout *readout = readouts->data[0]; // The only readout we'll bother with
     
    754754    int x0Target = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.X0");
    755755    if (!mdok) {
    756         psLogMsg(__func__, PS_LOG_WARN, "CELL.X0 is not set for the target cell; assuming 0.\n");
     756        psWarning("CELL.X0 is not set for the target cell; assuming 0.\n");
    757757        FIX_CONCEPT(targetCell->concepts, "CELL.X0", S32, 0);
    758758    }
    759759    int y0Target = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.Y0");
    760760    if (!mdok) {
    761         psLogMsg(__func__, PS_LOG_WARN, "CELL.Y0 is not set for the target cell; assuming 0.\n");
     761        psWarning("CELL.Y0 is not set for the target cell; assuming 0.\n");
    762762        FIX_CONCEPT(targetCell->concepts, "CELL.Y0", S32, 0);
    763763    }
    764764    int xParityTarget = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.XPARITY");
    765765    if (!mdok || (xParityTarget != -1 && xParityTarget != 1)) {
    766         psLogMsg(__func__, PS_LOG_WARN, "CELL.XPARITY is not set for the target cell; assuming 1.\n");
     766        psWarning("CELL.XPARITY is not set for the target cell; assuming 1.\n");
    767767        FIX_CONCEPT(targetCell->concepts, "CELL.XPARITY", S32, 1);
    768768        xParityTarget = 1;
     
    770770    int yParityTarget = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.YPARITY");
    771771    if (!mdok || (yParityTarget != -1 && yParityTarget != 1)) {
    772         psLogMsg(__func__, PS_LOG_WARN, "CELL.YPARITY is not set for the target cell; assuming 1.\n");
     772        psWarning("CELL.YPARITY is not set for the target cell; assuming 1.\n");
    773773        FIX_CONCEPT(targetCell->concepts, "CELL.YPARITY", S32, 1);
    774774        yParityTarget = 1;
     
    863863    int x0Target = psMetadataLookupS32(&mdok, targetChip->concepts, "CHIP.X0");
    864864    if (!mdok) {
    865         psLogMsg(__func__, PS_LOG_WARN, "CHIP.X0 is not set for the target chip; assuming 0.\n");
     865        psWarning("CHIP.X0 is not set for the target chip; assuming 0.\n");
    866866        FIX_CONCEPT(targetChip->concepts, "CHIP.X0", S32, 0);
    867867    }
    868868    int y0Target = psMetadataLookupS32(&mdok, targetChip->concepts, "CHIP.Y0");
    869869    if (!mdok) {
    870         psLogMsg(__func__, PS_LOG_WARN, "CHIP.Y0 is not set for the target chip; assuming 0.\n");
     870        psWarning("CHIP.Y0 is not set for the target chip; assuming 0.\n");
    871871        FIX_CONCEPT(targetChip->concepts, "CHIP.Y0", S32, 0);
    872872    }
    873873    x0Target += psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.X0");
    874874    if (!mdok) {
    875         psLogMsg(__func__, PS_LOG_WARN, "CELL.X0 is not set for the target cell; assuming 0.\n");
     875        psWarning("CELL.X0 is not set for the target cell; assuming 0.\n");
    876876        FIX_CONCEPT(targetCell->concepts, "CELL.X0", S32, 0);
    877877    }
    878878    y0Target += psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.Y0");
    879879    if (!mdok) {
    880         psLogMsg(__func__, PS_LOG_WARN, "CELL.Y0 is not set for the target cell; assuming 0.\n");
     880        psWarning("CELL.Y0 is not set for the target cell; assuming 0.\n");
    881881        FIX_CONCEPT(targetCell->concepts, "CELL.Y0", S32, 0);
    882882    }
    883883    int xParityChipTarget = psMetadataLookupS32(&mdok, targetChip->concepts, "CHIP.XPARITY");
    884884    if (!mdok || (xParityChipTarget != -1 && xParityChipTarget != 1)) {
    885         psLogMsg(__func__, PS_LOG_WARN, "CHIP.XPARITY is not set for the target chip; assuming 1.\n");
     885        psWarning("CHIP.XPARITY is not set for the target chip; assuming 1.\n");
    886886        FIX_CONCEPT(targetChip->concepts, "CHIP.XPARITY", S32, 1);
    887887        xParityChipTarget = 1;
     
    889889    int yParityChipTarget = psMetadataLookupS32(&mdok, targetChip->concepts, "CHIP.YPARITY");
    890890    if (!mdok || (yParityChipTarget != -1 && yParityChipTarget != 1)) {
    891         psLogMsg(__func__, PS_LOG_WARN, "CHIP.YPARITY is not set for the target chip; assuming 1.\n");
     891        psWarning("CHIP.YPARITY is not set for the target chip; assuming 1.\n");
    892892        FIX_CONCEPT(targetChip->concepts, "CHIP.YPARITY", S32, 1);
    893893        yParityChipTarget = 1;
     
    895895    int xParityCellTarget = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.XPARITY");
    896896    if (!mdok || (xParityCellTarget != -1 && xParityCellTarget != 1)) {
    897         psLogMsg(__func__, PS_LOG_WARN, "CELL.XPARITY is not set for the target cell; assuming 1.\n");
     897        psWarning("CELL.XPARITY is not set for the target cell; assuming 1.\n");
    898898        FIX_CONCEPT(targetCell->concepts, "CELL.XPARITY", S32, 1);
    899899        xParityCellTarget = 1;
     
    901901    int yParityCellTarget = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.YPARITY");
    902902    if (!mdok || (yParityCellTarget != -1 && yParityCellTarget != 1)) {
    903         psLogMsg(__func__, PS_LOG_WARN, "CELL.YPARITY is not set for the target cell; assuming 1.\n");
     903        psWarning("CELL.YPARITY is not set for the target cell; assuming 1.\n");
    904904        FIX_CONCEPT(targetCell->concepts, "CELL.YPARITY", S32, 1);
    905905        yParityCellTarget = 1;
     
    13341334    pmHDU *sourceHDU = pmHDUGetHighest(source, firstSourceChip, firstSourceCell); // The HDU for the source
    13351335    if (!sourceHDU) {
    1336         psLogMsg(__func__, PS_LOG_WARN, "Unable to find HDU in source FPA; unable to copy headers.\n");
     1336        psWarning("Unable to find HDU in source FPA; unable to copy headers.\n");
    13371337        return false;
    13381338    }
    13391339    pmHDU *targetHDU = pmHDUGetHighest(target, targetChip, targetCell); // The HDU for the target
    13401340    if (!targetHDU) {
    1341         psLogMsg(__func__, PS_LOG_WARN, "Unable to find HDU in target FPA; unable to copy headers.\n");
     1341        psWarning("Unable to find HDU in target FPA; unable to copy headers.\n");
    13421342        return false;
    13431343    }
Note: See TracChangeset for help on using the changeset viewer.