Don't append a colon and two spaces to title in --json output.
Resolves Issue 139.
This commit is contained in:
parent
f2c4e2b5bd
commit
a3736b64e7
@ -772,8 +772,7 @@ iperf_parse_arguments(struct iperf_test *test, int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case 'T':
|
case 'T':
|
||||||
test->title = malloc(strlen(optarg) + 4);
|
test->title = strdup(optarg);
|
||||||
sprintf(test->title, "%s: ", optarg);
|
|
||||||
client_flag = 1;
|
client_flag = 1;
|
||||||
break;
|
break;
|
||||||
case 'C':
|
case 'C':
|
||||||
@ -2609,7 +2608,7 @@ iprintf(struct iperf_test *test, const char* format, ...)
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (test->title)
|
if (test->title)
|
||||||
fputs(test->title, stdout);
|
printf("%s: ", test->title);
|
||||||
va_start(argp, format);
|
va_start(argp, format);
|
||||||
r = vprintf(format, argp);
|
r = vprintf(format, argp);
|
||||||
va_end(argp);
|
va_end(argp);
|
||||||
|
Loading…
Reference in New Issue
Block a user