Move the SYNC/ASYNC response text to after the dict so the dict is the first thing output and can be parsed without stripping this text (request from user).

This commit is contained in:
Sara Dickinson 2017-07-06 12:03:35 +02:00
parent 1b731271af
commit 28c41c3495
1 changed files with 4 additions and 3 deletions

View File

@ -378,7 +378,8 @@ void callback(getdns_context *context, getdns_callback_type_t callback_type,
getdns_print_json_dict(response, json == 1) getdns_print_json_dict(response, json == 1)
: getdns_pretty_print_dict(response))) { : getdns_pretty_print_dict(response))) {
fprintf(stdout, "ASYNC response:\n%s\n", response_str); fprintf(stdout, "%s\n", response_str);
fprintf(stdout, "ASYNC call completed.\n");
validate_chain(response); validate_chain(response);
free(response_str); free(response_str);
} }
@ -1188,8 +1189,8 @@ getdns_return_t do_the_call(void)
getdns_print_json_dict(response, json == 1) getdns_print_json_dict(response, json == 1)
: getdns_pretty_print_dict(response))) { : getdns_pretty_print_dict(response))) {
fprintf( stdout, "SYNC response:\n%s\n" fprintf( stdout, "%s\n", response_str);
, response_str); fprintf( stdout, "SYNC call completed.\n");
validate_chain(response); validate_chain(response);
free(response_str); free(response_str);
} else { } else {