Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/npf/npftest Fix printf format



details:   https://anonhg.NetBSD.org/src/rev/98bcd367cc49
branches:  trunk
changeset: 781525:98bcd367cc49
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Sep 12 16:26:02 2012 +0000

description:
Fix printf format

diffstat:

 usr.sbin/npf/npftest/npfstream.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6dab5420b11b -r 98bcd367cc49 usr.sbin/npf/npftest/npfstream.c
--- a/usr.sbin/npf/npftest/npfstream.c  Wed Sep 12 15:09:49 2012 +0000
+++ b/usr.sbin/npf/npftest/npfstream.c  Wed Sep 12 16:26:02 2012 +0000
@@ -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 @@
        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]);



Home | Main Index | Thread Index | Old Index