diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-06-19 00:07:23 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-06-19 00:07:23 +0000 |
commit | 7d607d5389f5b0917ce10d8c528ac9044afbf388 (patch) | |
tree | 593809b9d0b8c5957cfc6c99ddb8538b37f2f05c /packet-rsvp.c | |
parent | 33230a0e069abca254b8a5aca8c7dce2584853ce (diff) |
Pick up the stuff I did for tcpdump to figure out the right strings to
use to format 64-bit integers.
Fix the RSVP dissector to use that rather than hardcoding "%ll" in.
Remove the "only if G_HAVE_GINT64 is defined" bit from the discussion of
64-bit integers - we're too dependent on having them to support
compilers that don't have a 64-bit integral data type. Do, however,
note that neither "long" nor "long long" are acceptable, and also note
that you shouldn't assume "%ll" does the trick for printing them.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11182 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rsvp.c')
-rw-r--r-- | packet-rsvp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-rsvp.c b/packet-rsvp.c index 247c0cc959..7a2b45206c 100644 --- a/packet-rsvp.c +++ b/packet-rsvp.c @@ -3,7 +3,7 @@ * * (c) Copyright Ashok Narayanan <ashokn@cisco.com> * - * $Id: packet-rsvp.c,v 1.89 2004/05/19 17:45:04 ashokn Exp $ + * $Id: packet-rsvp.c,v 1.90 2004/06/19 00:07:22 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2574,7 +2574,7 @@ dissect_rsvp_integrity (proto_tree *ti, tvbuff_t *tvb, sequence_number <<= 32; sequence_number = tvb_get_ntohl(tvb, offset2+12); proto_tree_add_text(rsvp_object_tree, tvb, offset2+8, 8, - "Sequence Number: %llu", sequence_number); + "Sequence Number: %" PRIu64, sequence_number); proto_tree_add_text(rsvp_object_tree, tvb, offset2+16, obj_length - 20, "Hash: %s", tvb_bytes_to_str(tvb, offset2+16, obj_length - 20)); } |