Changeset 18336 for trunk/ippTools/src/regtool.c
- Timestamp:
- Jun 26, 2008, 3:39:54 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/regtool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/regtool.c
r18328 r18336 170 170 171 171 // required 172 PXOPT_LOOKUP_S TR(exp_id, config->args, "-exp_id", true, false);172 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); 173 173 PXOPT_LOOKUP_STR(exp_name, config->args, "-exp_name", true, false); 174 174 PXOPT_LOOKUP_STR(camera, config->args, "-inst", true, false); … … 230 230 if (!rawImfileInsert( 231 231 config->dbh, 232 (psS64)atoll(exp_id),232 exp_id, 233 233 exp_name, 234 234 camera, … … 496 496 497 497 // required 498 PXOPT_LOOKUP_S TR(exp_id, config->args, "-exp_id", true, false);498 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); 499 499 PXOPT_LOOKUP_STR(exp_name, config->args, "-exp_name", true, false); 500 500 PXOPT_LOOKUP_STR(camera, config->args, "-inst", true, false); … … 569 569 // build a query to search by exp_id 570 570 psMetadata *where = psMetadataAlloc(); 571 if (!psMetadataAddS tr(where, PS_LIST_TAIL, "newExp.exp_id", 0, "==", exp_id)) {571 if (!psMetadataAddS64(where, PS_LIST_TAIL, "newExp.exp_id", 0, "==", exp_id)) { 572 572 psError(PS_ERR_UNKNOWN, false, "failed to add item exp_id"); 573 573 psFree(where); … … 652 652 653 653 if (!rawExpInsert(config->dbh, 654 (psS64)atoll(exp_id),654 exp_id, 655 655 exp_name, 656 656 camera, … … 726 726 psError(PS_ERR_UNKNOWN, false, "database error"); 727 727 } 728 psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_id: % s", exp_id);728 psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_id: %"PRId64, exp_id); 729 729 psFree(newExp); 730 730 return false; … … 749 749 // this can only be run as the newExp's state has been set to stop 750 750 if (!pxchipQueueByExpTag(config, 751 (psS64)atoll(exp_id),751 exp_id, 752 752 workdir, 753 753 label, … … 797 797 798 798 // XX test this out; need to make this consistent with the list in regtoolConfig.c 799 PXOPT_COPY_S TR(config->args, config->where, "-exp_id", "exp_id", "==");799 PXOPT_COPY_S64(config->args, config->where, "-exp_id", "exp_id", "=="); 800 800 PXOPT_COPY_STR(config->args, config->where, "-exp_name", "exp_name", "=="); 801 801 PXOPT_COPY_STR(config->args, config->where, "-inst", "camera", "==");
Note:
See TracChangeset
for help on using the changeset viewer.
