From 28c41c3495c509bf584ec0da4e0c7ee20fd8fb68 Mon Sep 17 00:00:00 2001 From: Sara Dickinson Date: Thu, 6 Jul 2017 12:03:35 +0200 Subject: [PATCH] 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). --- src/tools/getdns_query.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tools/getdns_query.c b/src/tools/getdns_query.c index a28ffe54..2e397d02 100644 --- a/src/tools/getdns_query.c +++ b/src/tools/getdns_query.c @@ -378,7 +378,8 @@ void callback(getdns_context *context, getdns_callback_type_t callback_type, getdns_print_json_dict(response, json == 1) : 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); free(response_str); } @@ -1188,8 +1189,8 @@ getdns_return_t do_the_call(void) getdns_print_json_dict(response, json == 1) : getdns_pretty_print_dict(response))) { - fprintf( stdout, "SYNC response:\n%s\n" - , response_str); + fprintf( stdout, "%s\n", response_str); + fprintf( stdout, "SYNC call completed.\n"); validate_chain(response); free(response_str); } else {