Changeset 23873 for trunk/ippTools/src/chiptool.c
- Timestamp:
- Apr 15, 2009, 9:33:58 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r23870 r23873 1308 1308 PS_ASSERT_PTR_NON_NULL(config, NULL); 1309 1309 1310 PXOPT_LOOKUP_S64(d et_id, config->args, "-chip_id", true, false);1310 PXOPT_LOOKUP_S64(dummy, config->args, "-chip_id", true, false); 1311 1311 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 1312 1312 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1313 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); 1314 1313 1315 1314 1316 FILE *f = fopen (outfile, "w"); … … 1361 1363 } 1362 1364 if (!psArrayLength(output)) { 1363 psTrace(" regtool", PS_LOG_INFO, "no rows found");1365 psTrace("chiptool", PS_LOG_INFO, "no rows found"); 1364 1366 psFree(output); 1365 return true; 1367 return false; 1368 } 1369 1370 if (clean) { 1371 bool success = true; 1372 if (!strcmp(tables[i].tableName, "chipRun")) { 1373 success = pxSetStateCleaned("chipRun", "state", output); 1374 } else if (!strcmp(tables[i].tableName, "chipProcessedImfile")) { 1375 success = pxSetStateCleaned("chipProcessedImfile", "data_state", output); 1376 } 1377 if (!success) { 1378 psFree(output); 1379 psError(PS_ERR_UNKNOWN, false, "pxSetStateClean failed for table %s", tables[i].tableName); 1380 return false; 1381 } 1366 1382 } 1367 1383 … … 1429 1445 return true; 1430 1446 } 1431 1432
Note:
See TracChangeset
for help on using the changeset viewer.
