Changeset 35298 for trunk/ippTools/src/pstamptool.c
- Timestamp:
- Mar 11, 2013, 2:33:53 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pstamptool.c (modified) (3 diffs)
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 }
Note:
See TracChangeset
for help on using the changeset viewer.
