Module Name: src
Committed By: martin
Date: Wed Sep 12 16:26:02 UTC 2012
Modified Files:
src/usr.sbin/npf/npftest: npfstream.c
Log Message:
Fix printf format
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/npf/npftest/npfstream.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/npf/npftest/npfstream.c
diff -u src/usr.sbin/npf/npftest/npfstream.c:1.3 src/usr.sbin/npf/npftest/npfstream.c:1.4
--- src/usr.sbin/npf/npftest/npfstream.c:1.3 Sun Aug 12 03:35:14 2012
+++ src/usr.sbin/npf/npftest/npfstream.c Wed Sep 12 16:26:02 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: npfstream.c,v 1.3 2012/08/12 03:35:14 rmind Exp $ */
+/* $NetBSD: npfstream.c,v 1.4 2012/09/12 16:26:02 martin Exp $ */
/*
* NPF stream processor.
@@ -73,7 +73,7 @@ process_tcpip(const void *data, size_t l
len = ntohs(ip->ip_len);
error = rumpns_npf_test_handlepkt(ip, len, idx, forw, result);
- fprintf(fp, "%s%2x %5d %3d %11u %11u %11u %11u %12lx",
+ fprintf(fp, "%s%2x %5d %3d %11u %11u %11u %11u %12" PRIxPTR,
forw ? ">" : "<", (th->th_flags & (TH_SYN | TH_ACK | TH_FIN)),
packetno, error, (u_int)seq, (u_int)ntohl(th->th_ack),
tcpdlen, ntohs(th->th_win), (uintptr_t)result[0]);