Update to meas: stdout-->stderr, remove unusable error message,
reported by Dmitriy
This commit is contained in:
parent
6a99f7978e
commit
3f3194babf
|
|
@ -1643,7 +1643,7 @@ get_measure2(
|
|||
*result = 0.0e0; /* default result */
|
||||
|
||||
if (!wl) {
|
||||
printf("usage: measure .....\n");
|
||||
fprintf(cp_err, "Error: no assignment found in command meas.\n");
|
||||
return MEASUREMENT_FAILURE;
|
||||
}
|
||||
|
||||
|
|
@ -1665,11 +1665,6 @@ get_measure2(
|
|||
wlTarg = NULL;
|
||||
wlWhen = NULL;
|
||||
|
||||
if (!words) {
|
||||
fprintf(cp_err, "Error: no assignment found.\n");
|
||||
return MEASUREMENT_FAILURE;
|
||||
}
|
||||
|
||||
precision = measure_get_precision();
|
||||
wl_cnt = 0;
|
||||
while (words) {
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ com_meas(wordlist *wl)
|
|||
/* get output var name */
|
||||
wl_count = wl_count->wl_next;
|
||||
if (!wl_count) {
|
||||
fprintf(stdout,
|
||||
fprintf(stderr,
|
||||
" meas %s failed!\n"
|
||||
" unspecified output var name\n\n", line_in);
|
||||
tfree(line_in);
|
||||
|
|
@ -130,7 +130,7 @@ com_meas(wordlist *wl)
|
|||
fail = get_measure2(wl, &result, NULL, FALSE);
|
||||
|
||||
if (fail) {
|
||||
fprintf(stdout, " meas %s failed!\n\n", line_in);
|
||||
fprintf(stderr, " meas %s failed!\n\n", line_in);
|
||||
tfree(line_in);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue