aboutsummaryrefslogtreecommitdiffstats
path: root/tools/wireshark_gen.py
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-05-29 18:52:42 +0000
committerGuy Harris <guy@alum.mit.edu>2007-05-29 18:52:42 +0000
commit5a43799a17572c9a9962dc76fd681a14bb7689de (patch)
tree362095c0935c7f6d8f0018b30fb612222ea70263 /tools/wireshark_gen.py
parentbf167869027678071c584520fee3e95f88680116 (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 'tools/wireshark_gen.py')
-rw-r--r--tools/wireshark_gen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py
index e405390da9..a6db73f122 100644
--- a/tools/wireshark_gen.py
+++ b/tools/wireshark_gen.py
@@ -1901,13 +1901,13 @@ if (tree) {
template_get_CDR_longlong = """\
s_octet8 = get_CDR_long_long(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
- proto_tree_add_text(tree,tvb,*offset-8,8,"@varname@ = %" PRId64,s_octet8);
+ proto_tree_add_text(tree,tvb,*offset-8,8,"@varname@ = %" G_GINT64_MODIFIER "d",s_octet8);
}
"""
template_get_CDR_ulonglong = """\
u_octet8 = get_CDR_ulong_long(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
- proto_tree_add_text(tree,tvb,*offset-8,8,"@varname@ = %" PRIu64,u_octet8);
+ proto_tree_add_text(tree,tvb,*offset-8,8,"@varname@ = %" G_GINT64_MODIFIER "u",u_octet8);
}
"""
template_get_CDR_boolean = """\