Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/tcpdump Print an explicit 64-bit type with %PRIu64, not...
details: https://anonhg.NetBSD.org/src/rev/295062d31637
branches: trunk
changeset: 747432:295062d31637
user: he <he%NetBSD.org@localhost>
date: Mon Sep 14 15:18:15 2009 +0000
description:
Print an explicit 64-bit type with %PRIu64, not with %llu, so that
this builds on our LP64 ports as well.
diffstat:
dist/tcpdump/print-pfsync.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 746c5951256a -r 295062d31637 dist/tcpdump/print-pfsync.c
--- a/dist/tcpdump/print-pfsync.c Mon Sep 14 15:12:21 2009 +0000
+++ b/dist/tcpdump/print-pfsync.c Mon Sep 14 15:18:15 2009 +0000
@@ -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/Attic/print-pfsync.c,v 1.1 2009/09/14 10:36:49 degroote Exp $";
+ "@(#) $Header: /cvsroot/src/dist/tcpdump/Attic/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? */
Home |
Main Index |
Thread Index |
Old Index