From: Vladimír Čunát Date: Mon, 13 Feb 2023 15:59:11 +0000 (+0100) Subject: lib/utils: fix timestamp format in dumps of records X-Git-Tag: v5.7.0~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6647f383b5c8ab0a20f909b15280aa5cccb56ad0;p=thirdparty%2Fknot-resolver.git lib/utils: fix timestamp format in dumps of records The debug dumps of packets used UNIX timestamps (in RRSIG validity) instead of the customary human stamps. This was an unintentional regression of 0555828e, i.e. since v5.4.1 I looked again at all other differences from default kdig style, and the only ones are that we don't show class and don't do IDN. (both seem suitable here) --- diff --git a/NEWS b/NEWS index 45078d360..86275ea34 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,11 @@ +Knot Resolver 5.6.1 (2023-0m-dd) +================================ + +Bugfixes +-------- +- fix unusual timestamp format in debug dumps of records (!1386) + + Knot Resolver 5.6.0 (2023-01-26) ================================ diff --git a/lib/utils.c b/lib/utils.c index c1b25db60..52366e910 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -1199,6 +1199,11 @@ char *kr_pkt_text(const knot_pkt_t *pkt) const knot_dump_style_t KR_DUMP_STYLE_DEFAULT = { /* almost all = false, */ .show_ttl = true, +#if KNOT_VERSION_HEX >= 0x030200 + .human_timestamp = true, +#else + .human_tmstamp = true, +#endif }; char *kr_rrset_text(const knot_rrset_t *rr)