Changeset 17148 for trunk/ippTools/src/pxchip.c
- Timestamp:
- Mar 25, 2008, 4:43:13 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxchip.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxchip.c
r16170 r17148 31 31 bool pxchipRunSetState(pxConfig *config, psS64 chip_id, const char *state) 32 32 { 33 PS_ASSERT_PTR_NON_NULL(config, false); 33 34 PS_ASSERT_PTR_NON_NULL(state, false); 34 35 … … 47 48 char *query = "UPDATE chipRun SET state = '%s' WHERE chip_id = %" PRId64; 48 49 if (!p_psDBRunQuery(config->dbh, query, state, chip_id)) { 50 psError(PS_ERR_UNKNOWN, false, 51 "failed to change state for chip_id %" PRId64, chip_id); 52 return false; 53 } 54 55 return true; 56 } 57 58 59 bool pxchipRunSetLabel(pxConfig *config, psS64 chip_id, const char *label) 60 { 61 PS_ASSERT_PTR_NON_NULL(config, false); 62 // note label == NULL should be explicitly allowed 63 64 char *query = "UPDATE chipRun SET label = '%s' WHERE chip_id = %" PRId64; 65 if (!p_psDBRunQuery(config->dbh, query, label, chip_id)) { 49 66 psError(PS_ERR_UNKNOWN, false, 50 67 "failed to change state for chip_id %" PRId64, chip_id);
Note:
See TracChangeset
for help on using the changeset viewer.
