Commit 60fb3400 authored by Daniel Salzman's avatar Daniel Salzman

kdig: remove boring newlines between retries

parent 259a2d33
......@@ -827,7 +827,7 @@ static void process_query(const query_t *query)
// If error try next resolved address.
if (ret != 0) {
net.srv = (net.srv)->ai_next;
if (net.srv != NULL) {
if (net.srv != NULL && query->style.show_query) {
printf("\n");
}
......@@ -846,10 +846,13 @@ static void process_query(const query_t *query)
}
if (i < query->retries) {
printf("\n");
DBG("retrying server %s@%s(%s)\n",
remote->name, remote->service,
get_sockname(socktype));
if (query->style.show_query) {
printf("\n");
}
}
net_clean(&net);
......@@ -859,7 +862,7 @@ static void process_query(const query_t *query)
remote->name, remote->service, get_sockname(socktype));
// If not last server, print separation.
if (server->next->next) {
if (server->next->next && query->style.show_query) {
printf("\n");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment