siftr: convert this tval.tv_sec to type intmax_t to print across platforms

Reviewers: rscheff, tuexen
Approved by: tuexen (mentor)
Subscribers: imp, melifaro, glebius
Differential Revision: https://reviews.freebsd.org/D40323
This commit is contained in:
Cheng Cui 2023-05-29 16:17:29 -04:00
parent 1fc174cba6
commit b71f278465
No known key found for this signature in database
GPG Key ID: F9BE886D1486EF98

View File

@ -391,7 +391,7 @@ siftr_process_pkt(struct pkt_node * pkt_node)
"%c,%jd.%06ld,%s,%hu,%s,%hu,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,"
"%u,%u,%u,%u,%u,%u,%u,%u\n",
direction[pkt_node->direction],
pkt_node->tval.tv_sec,
(intmax_t)pkt_node->tval.tv_sec,
pkt_node->tval.tv_usec,
hash_node->const_info.laddr,
hash_node->const_info.lport,