Module Name: src
Committed By: he
Date: Mon Sep 14 15:18:15 UTC 2009
Modified Files:
src/dist/tcpdump: print-pfsync.c
Log Message:
Print an explicit 64-bit type with %PRIu64, not with %llu, so that
this builds on our LP64 ports as well.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/dist/tcpdump/print-pfsync.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/tcpdump/print-pfsync.c
diff -u src/dist/tcpdump/print-pfsync.c:1.1 src/dist/tcpdump/print-pfsync.c:1.2
--- src/dist/tcpdump/print-pfsync.c:1.1 Mon Sep 14 10:36:49 2009
+++ src/dist/tcpdump/print-pfsync.c Mon Sep 14 15:18:15 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: print-pfsync.c,v 1.1 2009/09/14 10:36:49 degroote Exp $ */
+/* $NetBSD: print-pfsync.c,v 1.2 2009/09/14 15:18:15 he Exp $ */
/* $OpenBSD: print-pfsync.c,v 1.30 2007/05/31 04:16:26 mcbride Exp $ */
/*
@@ -31,9 +31,9 @@
#ifndef lint
#if 0
static const char rcsid[] =
- "@(#) $Header: /cvsroot/src/dist/tcpdump/print-pfsync.c,v 1.1 2009/09/14 10:36:49 degroote Exp $";
+ "@(#) $Header: /cvsroot/src/dist/tcpdump/print-pfsync.c,v 1.2 2009/09/14 15:18:15 he Exp $";
#else
-__RCSID("$NetBSD: print-pfsync.c,v 1.1 2009/09/14 10:36:49 degroote Exp $");
+__RCSID("$NetBSD: print-pfsync.c,v 1.2 2009/09/14 15:18:15 he Exp $");
#endif
#endif
@@ -211,7 +211,7 @@
case PFSYNC_ACT_TDB_UPD:
for (i = 1, t = (void *)((char *)hdr + PFSYNC_HDRLEN);
i <= hdr->count && i * sizeof(*t) <= len; i++, t++)
- printf("\n\tspi: %08x rpl: %u cur_bytes: %llu",
+ printf("\n\tspi: %08x rpl: %u cur_bytes: %" PRIu64,
htonl(t->spi), htonl(t->rpl),
be64toh(t->cur_bytes));
/* XXX add dst and sproto? */