diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-02-13 16:59:11 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-02-26 16:38:07 +0100 |
commit | 6647f383b5c8ab0a20f909b15280aa5cccb56ad0 (patch) | |
tree | 61646fa9624a0c44d8a5ca9ca39769940270a1f6 /lib | |
parent | Merge !1387: ci: fix macOS builds (diff) | |
download | knot-resolver-6647f383b5c8ab0a20f909b15280aa5cccb56ad0.tar.xz knot-resolver-6647f383b5c8ab0a20f909b15280aa5cccb56ad0.zip |
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)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/utils.c b/lib/utils.c index c1b25db6..52366e91 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) |