From: Jan Hák Date: Wed, 18 Dec 2024 09:54:19 +0000 (+0100) Subject: utils: use knsupdate style of output when printing UPDATE message X-Git-Tag: v3.5.0~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29edb4dde0625cba9a8e4bb8df70009799bcbf3c;p=thirdparty%2Fknot-dns.git utils: use knsupdate style of output when printing UPDATE message --- diff --git a/src/utils/common/exec.c b/src/utils/common/exec.c index 798ae421f7..b91cc605a2 100644 --- a/src/utils/common/exec.c +++ b/src/utils/common/exec.c @@ -1133,7 +1133,9 @@ void print_packet(const knot_pkt_t *packet, } // Print DNS sections. - switch (style->format) { + format_t format = (knot_wire_get_opcode(packet->wire) == KNOT_OPCODE_UPDATE) + ? FORMAT_NSUPDATE : style->format; + switch (format) { case FORMAT_DIG: if (ancount > 0) { print_section_dig(knot_pkt_rr(answers, 0), ancount, style);