Changeset 13435
- Timestamp:
- May 18, 2007, 4:40:39 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppStats/src/ppStatsStandAlone.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src/ppStatsStandAlone.c
r13181 r13435 23 23 pmConfig *config = pmConfigRead(&argc, argv, PPSTATS_RECIPE); 24 24 if (!config) { 25 psError (PS_ERR_UNKNOWN, false, "Unable to read configuration.\n");25 psErrorStackPrint(stderr, "Unable to read configuration.\n"); 26 26 exit(PS_EXIT_CONFIG_ERROR); 27 27 } … … 30 30 ppStatsData *data = ppStatsSetupFromArgs(&argc, argv, config); 31 31 if (!data) { 32 psError (PS_ERR_UNKNOWN, false, "Unable to parse command-line arguments.\n");32 psErrorStackPrint(stderr, "Unable to parse command-line arguments.\n"); 33 33 exit(PS_EXIT_CONFIG_ERROR); 34 34 } … … 51 51 } 52 52 } else { 53 ps LogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file %s.\n", resolved);53 psErrorStackPrint(stderr, "Unable to open output file %s.\n", resolved); 54 54 psFree(resolved); 55 55 status = PS_EXIT_CONFIG_ERROR; … … 62 62 psMetadata *results = ppStatsLoop(NULL, data, config); 63 63 if (psListLength(results->list) == 0) { 64 ps LogMsg("ppStats", PS_LOG_ERROR, "No output.\n");64 psErrorStackPrint(stderr, "No output.\n"); 65 65 psFree(results); 66 66 status = PS_EXIT_DATA_ERROR; … … 76 76 psString output = psMetadataConfigFormat(results); 77 77 if (!output) { 78 ps LogMsg("ppStats", PS_LOG_ERROR, "Unable to generate configuration file with result.\n");78 psErrorStackPrint(stderr, "Unable to generate configuration file with result.\n"); 79 79 psFree(results); 80 80 status = PS_EXIT_CONFIG_ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.
