Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2023 10:27:55 GMT
From:      Cheng Cui <cc@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b71f278465ed - main - siftr: convert this tval.tv_sec to type intmax_t to print across platforms
Message-ID:  <202305301027.34UARtiE054077@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305301027.34UARtiE054077>