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/pmFPAFlags.c

    r13190 r15477  
    136136
    137137    for (int i = 0; i < fpa->chips->n; i++) {
    138         pmChip *chip = fpa->chips->data[i];
    139         if (chip == NULL) continue;
    140         if (chip->data_exists) return true;
     138        pmChip *chip = fpa->chips->data[i];
     139        if (chip == NULL) continue;
     140        if (chip->data_exists) return true;
    141141    }
    142142    return false;
     
    170170
    171171    if (view->chip == -1) {
    172         bool exists = pmFPACheckDataStatus (fpa);
    173         return exists;
     172        bool exists = pmFPACheckDataStatus (fpa);
     173        return exists;
    174174    }
    175175
    176176    if (view->chip >= fpa->chips->n) {
    177         psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == %ld", view->chip, fpa->chips->n);
    178         return false;
     177        psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == %ld", view->chip, fpa->chips->n);
     178        return false;
    179179    }
    180180    pmChip *chip = fpa->chips->data[view->chip];
    181181
    182182    if (view->cell == -1) {
    183         bool exists = pmChipCheckDataStatus (chip);
    184         return exists;
     183        bool exists = pmChipCheckDataStatus (chip);
     184        return exists;
    185185    }
    186186
    187187    if (view->cell >= chip->cells->n) {
    188         psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == %ld", view->cell, chip->cells->n);
    189         return false;
     188        psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == %ld", view->cell, chip->cells->n);
     189        return false;
    190190    }
    191191    pmCell *cell = chip->cells->data[view->cell];
    192192
    193193    if (view->readout == -1) {
    194         bool exists = pmCellCheckDataStatus (cell);
    195         return exists;
     194        bool exists = pmCellCheckDataStatus (cell);
     195        return exists;
    196196    }
    197197
    198198    if (view->readout >= cell->readouts->n) {
    199         psError(PS_ERR_IO, true, "Requested readout == %d >= cell->readouds->n == %ld", view->readout, cell->readouts->n);
    200         return false;
     199        psError(PS_ERR_IO, true, "Requested readout == %d >= cell->readouds->n == %ld", view->readout, cell->readouts->n);
     200        return false;
    201201    }
    202202    pmReadout *readout = cell->readouts->data[view->readout];
     
    290290    psArray *chips = fpa->chips;        // Component chips
    291291    if (chips == NULL) {
    292         psLogMsg(__func__, PS_LOG_WARN, "WARNING: fpa->chips == NULL\n");
     292        psWarning("WARNING: fpa->chips == NULL\n");
    293293        return(0);
    294294    }
    295295    if ((chipNum >= chips->n) || (NULL == (pmChip *) chips->data[chipNum])) {
    296         psLogMsg(__func__, PS_LOG_WARN, "WARNING: the specified chip (%d) does not exist.\n", chipNum);
     296        psWarning("WARNING: the specified chip (%d) does not exist.\n", chipNum);
    297297        return(0);
    298298    }
Note: See TracChangeset for help on using the changeset viewer.