Changeset 35298 for trunk/ippTools/src
- Timestamp:
- Mar 11, 2013, 2:33:53 PM (13 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
pstamptool.c (modified) (3 diffs)
-
pstamptoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pstamptool.c
r35295 r35298 452 452 PXOPT_COPY_S64(config->args, where, "-req_id", "req_id", "=="); 453 453 PXOPT_COPY_S64(config->args, where, "-not_req_id", "req_id", "!="); 454 PXOPT_COPY_STR(config->args, where, "-name", "name", "=="); 454 PXOPT_COPY_STR(config->args, where, "-name", "name", "LIKE"); 455 PXOPT_COPY_STR(config->args, where, "-username", "username", "=="); 456 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 455 457 456 458 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 458 460 459 461 if (!psListLength(where->list)) { 460 psError(PS_ERR_UNKNOWN, true, " -req_id or -name must be supplied");462 psError(PS_ERR_UNKNOWN, true, "search paramters are required"); 461 463 return false; 462 464 } … … 490 492 if (!psArrayLength(output)) { 491 493 psTrace("pstamptool", PS_LOG_INFO, "request not found"); 492 // This causes main to exit with PS_EXIT_DATA_ERROR which the script islooking for494 // This causes main to exit with PS_EXIT_DATA_ERROR which the pstamp scripts are looking for 493 495 psError(PXTOOLS_ERR_CONFIG, true, "request not found"); 494 496 psFree(output); 495 // we return false so that the caller can determine that a request does not exist497 // we return false so that the caller can easily determine that a request does not exist 496 498 return false; 497 499 } -
trunk/ippTools/src/pstamptoolConfig.c
r35295 r35298 90 90 psMetadataAddS64(listreqArgs, PS_LIST_TAIL, "-req_id", 0, "list by req_id", 0); 91 91 psMetadataAddStr(listreqArgs, PS_LIST_TAIL, "-name", 0, "list by name", NULL); 92 psMetadataAddStr(listreqArgs, PS_LIST_TAIL, "-username", 0, "list by user name", NULL); 93 psMetadataAddStr(listreqArgs, PS_LIST_TAIL, "-state", 0, "list by state", NULL); 92 94 psMetadataAddS64(listreqArgs, PS_LIST_TAIL, "-not_req_id", 0, "req_id to not list", 0); 93 95 psMetadataAddU64(listreqArgs, PS_LIST_TAIL, "-limit", 0, "limit result set to N items", 0);
Note:
See TracChangeset
for help on using the changeset viewer.
