Changeset 8669 for trunk/psModules/src/concepts
- Timestamp:
- Aug 29, 2006, 11:39:44 AM (20 years ago)
- Location:
- trunk/psModules/src/concepts
- Files:
-
- 4 edited
-
pmConcepts.c (modified) (12 diffs)
-
pmConceptsRead.c (modified) (2 diffs)
-
pmConceptsStandard.c (modified) (1 diff)
-
pmConceptsWrite.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConcepts.c
r8246 r8669 189 189 } 190 190 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); 192 192 193 193 if (source & PM_CONCEPT_SOURCE_CAMERA) { … … 212 212 { 213 213 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); 215 215 return conceptsBlank(&conceptsFPA, fpa->concepts); 216 216 } … … 225 225 { 226 226 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); 228 228 bool success = conceptsRead(&conceptsFPA, fpa, NULL, NULL, &fpa->conceptsRead, source, db, fpa->concepts); 229 229 if (propagateDown) { … … 248 248 { 249 249 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); 251 251 bool success = conceptsWrite(&conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts); 252 252 if (propagateDown) { … … 267 267 { 268 268 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); 270 270 return conceptsBlank(&conceptsChip, chip->concepts); 271 271 } … … 280 280 { 281 281 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); 283 283 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 284 284 bool success = conceptsRead(&conceptsChip, fpa, chip, NULL, &chip->conceptsRead, source, db, … … 308 308 { 309 309 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); 311 311 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 312 312 bool success = conceptsWrite(&conceptsChip, fpa, chip, NULL, source, db, chip->concepts); … … 331 331 { 332 332 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); 334 334 return conceptsBlank(&conceptsCell, cell->concepts); 335 335 } … … 343 343 { 344 344 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); 346 346 pmChip *chip = cell->parent; // Chip to which the cell belongs 347 347 pmFPA *fpa = chip->parent; // FPA to which the chip belongs … … 371 371 { 372 372 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); 374 374 pmChip *chip = cell->parent; // Chip to which the cell belongs 375 375 pmFPA *fpa = chip->parent; // FPA to which the chip belongs … … 704 704 psArray *sourceChips = source->chips; // Chips in source 705 705 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 " 707 707 "concepts.\n", targetChips->n, sourceChips->n); 708 708 return false; … … 720 720 psArray *sourceCells = sourceChip->cells; // Cells in source 721 721 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 ---" 723 723 " unable to copy concepts.\n", targetCells->n, sourceCells->n, i); 724 724 return false; -
trunk/psModules/src/concepts/pmConceptsRead.c
r8246 r8669 156 156 if (!conceptParse(spec, conceptItem, cameraFormat, target, NULL, NULL, cell)) { 157 157 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); 159 159 status = false; 160 160 } … … 199 199 psString name = specItem->name; // The concept name 200 200 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); 202 202 if (conceptItem && conceptItem->type == PS_DATA_METADATA) { 203 203 psTrace("psModules.concepts", 5, "%s is of type METADATA.\n", name); -
trunk/psModules/src/concepts/pmConceptsStandard.c
r7743 r8669 69 69 sscanf(concept->data.V, "%d %d %f", &big, &medium, &small) != 3) 70 70 { 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); 72 72 break; 73 73 } -
trunk/psModules/src/concepts/pmConceptsWrite.c
r8246 r8669 140 140 switch (item->type) { 141 141 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); 143 143 return psMetadataAddStr(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment, 144 144 item->data.V); … … 190 190 psList *keys = psStringSplit(keywords, " ,;", true); // List of keywords 191 191 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", 193 193 keys->n, values->n); 194 194 } … … 259 259 continue; 260 260 } 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); 262 262 writeHeader(hdu, cameraItem->data.V, formatted); 263 263 } else if (strcasecmp(source, "VALUE") == 0) { … … 384 384 continue; 385 385 } 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); 387 387 psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts 388 388 psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell);
Note:
See TracChangeset
for help on using the changeset viewer.
