Changeset 28055 for trunk/ippTools/src/chiptool.c
- Timestamp:
- May 20, 2010, 4:37:23 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r28043 r28055 1430 1430 1431 1431 // Set chipRun.software_ver to the appropriate value 1432 if (!pxSetRunSoftware(config, "chipRun", "chip_id", chip_id, software_ver)) { 1433 psError(PS_ERR_UNKNOWN, false, "failed to set chipRun.software_ver for chip_id: %" PRId64, 1434 chip_id); 1435 psFree(output); 1436 if (!psDBRollback(config->dbh)) { 1437 psError(PS_ERR_UNKNOWN, false, "database error"); 1432 if (software_ver) { 1433 if (!pxSetRunSoftware(config, "chipRun", "chip_id", chip_id, software_ver)) { 1434 psError(PS_ERR_UNKNOWN, false, "failed to set chipRun.software_ver for chip_id: %" PRId64, 1435 chip_id); 1436 psFree(output); 1437 if (!psDBRollback(config->dbh)) { 1438 psError(PS_ERR_UNKNOWN, false, "database error"); 1439 } 1440 return(false); 1438 1441 } 1439 return(false);1440 1442 } 1441 1443 // Set chipRun.maskfrac* to the appropriate values. 1442 if (!pxSetRunMaskfrac(config, "chipRun", "chip_id",chip_id, maskfrac_npix, maskfrac_static, 1443 maskfrac_dynamic, maskfrac_magic, maskfrac_advisory)) { 1444 psError(PS_ERR_UNKNOWN, false, "failed to set chipRun.software_ver for chip_id: %" PRId64, 1445 chip_id); 1446 psFree(output); 1447 if (!psDBRollback(config->dbh)) { 1448 psError(PS_ERR_UNKNOWN, false, "database error"); 1444 if (maskfrac_npix) { 1445 if (!pxSetRunMaskfrac(config, "chipRun", "chip_id",chip_id, maskfrac_npix, maskfrac_static, 1446 maskfrac_dynamic, maskfrac_magic, maskfrac_advisory)) { 1447 psError(PS_ERR_UNKNOWN, false, "failed to set chipRun.software_ver for chip_id: %" PRId64, 1448 chip_id); 1449 psFree(output); 1450 if (!psDBRollback(config->dbh)) { 1451 psError(PS_ERR_UNKNOWN, false, "database error"); 1452 } 1453 return(false); 1449 1454 } 1450 return(false);1451 1455 } 1452 1456 // set chipRun.state to 'stop' and update the magicked state
Note:
See TracChangeset
for help on using the changeset viewer.
