diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-05-29 18:52:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-05-29 18:52:42 +0000 |
commit | 5a43799a17572c9a9962dc76fd681a14bb7689de (patch) | |
tree | 362095c0935c7f6d8f0018b30fb612222ea70263 /epan/dissectors/packet-dis-fields.c | |
parent | bf167869027678071c584520fee3e95f88680116 (diff) |
Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLib
routines and routines using those routines. GLib might use different
modifiers for 64-bit quantities than the platform's C library does.
svn path=/trunk/; revision=21990
Diffstat (limited to 'epan/dissectors/packet-dis-fields.c')
-rw-r--r-- | epan/dissectors/packet-dis-fields.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dis-fields.c b/epan/dissectors/packet-dis-fields.c index c62f789be4..53991ed41a 100644 --- a/epan/dissectors/packet-dis-fields.c +++ b/epan/dissectors/packet-dis-fields.c @@ -276,7 +276,7 @@ gint parseField_Bitmask(tvbuff_t *tvb, proto_tree *tree, gint offset, DIS_Parser else { proto_tree_add_text(tree, tvb, offset, numBytes, - "Unknown Appearance Type (%" PRIu64 ")", uintVal); + "Unknown Appearance Type (%" G_GINT64_MODIFIER "u)", uintVal); } offset += numBytes; @@ -311,7 +311,7 @@ gint parseField_UInt(tvbuff_t *tvb, proto_tree *tree, gint offset, DIS_ParserNod break; } - proto_tree_add_text(tree, tvb, offset, numBytes, "%s = %" PRIu64, + proto_tree_add_text(tree, tvb, offset, numBytes, "%s = %" G_GINT64_MODIFIER "u", parserNode.fieldLabel, uintVal); if (parserNode.outputVar != 0) @@ -351,7 +351,7 @@ gint parseField_Int(tvbuff_t *tvb, proto_tree *tree, gint offset, DIS_ParserNode break; } - proto_tree_add_text(tree, tvb, offset, numBytes, "%s = %" PRId64, + proto_tree_add_text(tree, tvb, offset, numBytes, "%s = %" G_GINT64_MODIFIER "d", parserNode.fieldLabel, uintVal); offset += numBytes; |