]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/utils: fix timestamp format in dumps of records
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 13 Feb 2023 15:59:11 +0000 (16:59 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Sun, 26 Feb 2023 15:38:07 +0000 (15:38 +0000)
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)

NEWS
lib/utils.c

diff --git a/NEWS b/NEWS
index 45078d360fd1075d7b8c777470745becd4333613..86275ea340dd8a2498d2e7963814cd30a954c5fe 100644 (file)
--- 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)
 ================================
 
index c1b25db60a417666dd640dd7b0f9f3ee3abec840..52366e9109bb72b112e2f3abba984b49d0d01de1 100644 (file)
@@ -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)