git: b71f278465ed - main - siftr: convert this tval.tv_sec to type intmax_t to print across platforms
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 May 2023 10:27:55 UTC
The branch main has been updated by cc:
URL: https://cgit.FreeBSD.org/src/commit/?id=b71f278465ed680019532b8388a163f1d428cc00
commit b71f278465ed680019532b8388a163f1d428cc00
Author: Cheng Cui <cc@FreeBSD.org>
AuthorDate: 2023-05-29 20:17:29 +0000
Commit: Cheng Cui <cc@FreeBSD.org>
CommitDate: 2023-05-30 06:27:33 +0000
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
---
sys/netinet/siftr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netinet/siftr.c b/sys/netinet/siftr.c
index 2741553ed757..2c02130bbcca 100644
--- a/sys/netinet/siftr.c
+++ b/sys/netinet/siftr.c
@@ -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,