Changeset 8669 for trunk/psModules/src/concepts/pmConcepts.c
- Timestamp:
- Aug 29, 2006, 11:39:44 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConcepts.c (modified) (12 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;
Note:
See TracChangeset
for help on using the changeset viewer.
