IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2006, 11:39:44 AM (20 years ago)
Author:
jhoblitt
Message:

fix a wide range of format string errors

Location:
trunk/psModules/src/concepts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConcepts.c

    r8246 r8669  
    189189    }
    190190
    191     psTrace("psModules.concepts", 3, "Writing concepts (%x %x %x): %x\n", fpa, chip, cell, source);
     191    psTrace("psModules.concepts", 3, "Writing concepts (%p %p %p): %d\n", fpa, chip, cell, source);
    192192
    193193    if (source & PM_CONCEPT_SOURCE_CAMERA) {
     
    212212{
    213213    PS_ASSERT_PTR_NON_NULL(fpa, false);
    214     psTrace("psModules.concepts", 5, "Blanking FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
     214    psTrace("psModules.concepts", 5, "Blanking FPA concepts: %p %p\n", conceptsFPA, fpa->concepts);
    215215    return conceptsBlank(&conceptsFPA, fpa->concepts);
    216216}
     
    225225{
    226226    PS_ASSERT_PTR_NON_NULL(fpa, false);
    227     psTrace("psModules.concepts", 5, "Reading FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
     227    psTrace("psModules.concepts", 5, "Reading FPA concepts: %p %p\n", conceptsFPA, fpa->concepts);
    228228    bool success = conceptsRead(&conceptsFPA, fpa, NULL, NULL, &fpa->conceptsRead, source, db, fpa->concepts);
    229229    if (propagateDown) {
     
    248248{
    249249    PS_ASSERT_PTR_NON_NULL(fpa, false);
    250     psTrace("psModules.concepts", 5, "Writing FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
     250    psTrace("psModules.concepts", 5, "Writing FPA concepts: %p %p\n", conceptsFPA, fpa->concepts);
    251251    bool success = conceptsWrite(&conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts);
    252252    if (propagateDown) {
     
    267267{
    268268    PS_ASSERT_PTR_NON_NULL(chip, false);
    269     psTrace("psModules.concepts", 5, "Blanking chip concepts: %x %x\n", conceptsChip, chip->concepts);
     269    psTrace("psModules.concepts", 5, "Blanking chip concepts: %p %p\n", conceptsChip, chip->concepts);
    270270    return conceptsBlank(&conceptsChip, chip->concepts);
    271271}
     
    280280{
    281281    PS_ASSERT_PTR_NON_NULL(chip, false);
    282     psTrace("psModules.concepts", 5, "Reading chip concepts: %x %x\n", conceptsChip, chip->concepts);
     282    psTrace("psModules.concepts", 5, "Reading chip concepts: %p %p\n", conceptsChip, chip->concepts);
    283283    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
    284284    bool success = conceptsRead(&conceptsChip, fpa, chip, NULL, &chip->conceptsRead, source, db,
     
    308308{
    309309    PS_ASSERT_PTR_NON_NULL(chip, false);
    310     psTrace("psModules.concepts", 5, "Writing chip concepts: %x %x\n", conceptsChip, chip->concepts);
     310    psTrace("psModules.concepts", 5, "Writing chip concepts: %p %p\n", conceptsChip, chip->concepts);
    311311    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
    312312    bool success = conceptsWrite(&conceptsChip, fpa, chip, NULL, source, db, chip->concepts);
     
    331331{
    332332    PS_ASSERT_PTR_NON_NULL(cell, false);
    333     psTrace("psModules.concepts", 5, "Blanking cell concepts: %x %x\n", conceptsCell, cell->concepts);
     333    psTrace("psModules.concepts", 5, "Blanking cell concepts: %p %p\n", conceptsCell, cell->concepts);
    334334    return conceptsBlank(&conceptsCell, cell->concepts);
    335335}
     
    343343{
    344344    PS_ASSERT_PTR_NON_NULL(cell, false);
    345     psTrace("psModules.concepts", 5, "Reading cell concepts: %x %x\n", conceptsCell, cell->concepts);
     345    psTrace("psModules.concepts", 5, "Reading cell concepts: %p %p\n", conceptsCell, cell->concepts);
    346346    pmChip *chip = cell->parent;        // Chip to which the cell belongs
    347347    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
     
    371371{
    372372    PS_ASSERT_PTR_NON_NULL(cell, false);
    373     psTrace("psModules.concepts", 5, "Writing cell concepts: %x %x\n", conceptsCell, cell->concepts);
     373    psTrace("psModules.concepts", 5, "Writing cell concepts: %p %p\n", conceptsCell, cell->concepts);
    374374    pmChip *chip = cell->parent;        // Chip to which the cell belongs
    375375    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
     
    704704    psArray *sourceChips = source->chips; // Chips in source
    705705    if (targetChips->n != sourceChips->n) {
    706         psError(PS_ERR_IO, true, "Number of chips in target (%d) and source (%d) differ --- unable to copy "
     706        psError(PS_ERR_IO, true, "Number of chips in target (%ld) and source (%ld) differ --- unable to copy "
    707707                "concepts.\n", targetChips->n, sourceChips->n);
    708708        return false;
     
    720720        psArray *sourceCells = sourceChip->cells; // Cells in source
    721721        if (targetCells->n != sourceCells->n) {
    722             psError(PS_ERR_IO, true, "Number of cells in target (%d) and source (%d) differ for chip %d ---"
     722            psError(PS_ERR_IO, true, "Number of cells in target (%ld) and source (%ld) differ for chip %d ---"
    723723                    " unable to copy concepts.\n", targetCells->n, sourceCells->n, i);
    724724            return false;
  • trunk/psModules/src/concepts/pmConceptsRead.c

    r8246 r8669  
    156156                if (!conceptParse(spec, conceptItem, cameraFormat, target, NULL, NULL, cell)) {
    157157                    psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to parse concept %s from camera "
    158                             "configuration.  It has a weird %s.SOURCE: %s\n", name, name);
     158                            "configuration.\n", name);
    159159                    status = false;
    160160                }
     
    199199        psString name = specItem->name; // The concept name
    200200        psMetadataItem *conceptItem = psMetadataLookup(defaults, name); // The concept, or NULL
    201         psTrace("psModules.concepts", 10, "%s: %x\n", name, conceptItem);
     201        psTrace("psModules.concepts", 10, "%s: %p\n", name, conceptItem);
    202202        if (conceptItem && conceptItem->type == PS_DATA_METADATA) {
    203203            psTrace("psModules.concepts", 5, "%s is of type METADATA.\n", name);
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r7743 r8669  
    6969                    sscanf(concept->data.V, "%d %d %f", &big, &medium, &small) != 3)
    7070            {
    71                 psError(PS_ERR_UNKNOWN, true, "Cannot interpret FPA.RA: %s\n", concept->data.V);
     71                psError(PS_ERR_UNKNOWN, true, "Cannot interpret FPA.RA: %s\n", concept->data.str);
    7272                break;
    7373            }
  • trunk/psModules/src/concepts/pmConceptsWrite.c

    r8246 r8669  
    140140    switch (item->type) {
    141141    case PS_DATA_STRING:
    142         psTrace("psModules.concepts", 9, "Writing header %s: %s\n", keyword, item->data.V);
     142        psTrace("psModules.concepts", 9, "Writing header %s: %s\n", keyword, item->data.str);
    143143        return psMetadataAddStr(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    144144                                item->data.V);
     
    190190        psList *keys = psStringSplit(keywords, " ,;", true); // List of keywords
    191191        if (keys->n != values->n) {
    192             psLogMsg(__func__, PS_LOG_WARN, "Number of keywords (%d) does not match number of values (%d).\n",
     192            psLogMsg(__func__, PS_LOG_WARN, "Number of keywords (%ld) does not match number of values (%ld).\n",
    193193                     keys->n, values->n);
    194194        }
     
    259259                        continue;
    260260                    }
    261                     psTrace("psModules.concepts", 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.str);
    262262                    writeHeader(hdu, cameraItem->data.V, formatted);
    263263                } else if (strcasecmp(source, "VALUE") == 0) {
     
    384384                continue;
    385385            }
    386             psTrace("psModules.concepts", 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.str);
    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.