summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-14 10:35:42 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-14 18:36:28 +0000
commit0e64efc81a2ee96bcfa8ba43c4aab2e1b0a2d95f (patch)
tree4a732a9d0a675b34045df0b8aa0a3e21bec5f93d
parent7390516f61e64568e8cbdee64dbb6b908bbc2676 (diff)
downloadwireshark-0e64efc81a2ee96bcfa8ba43c4aab2e1b0a2d95f.tar.gz
Use G_GUINT64_FORMAT to format a guint64.
A 64-bit integer isn't necessarily a long, it might be a long long. Use G_GUINT64_FORMAT to format it. Make it a guint64 while we're at it - the field is a FT_GUINT64. Change-Id: I7ee855905ea77347576005441824b1c4630f5659 Reviewed-on: https://code.wireshark.org/review/5302 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--epan/dissectors/packet-elasticsearch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-elasticsearch.c b/epan/dissectors/packet-elasticsearch.c
index 59e43da2bd..dc9a1f7204 100644
--- a/epan/dissectors/packet-elasticsearch.c
+++ b/epan/dissectors/packet-elasticsearch.c
@@ -414,7 +414,7 @@ static int elasticsearch_dissect_valid_binary_packet(tvbuff_t *tvb, packet_info
int offset = 0;
gint8 transport_status_flags;
- gint64 request_id;
+ guint64 request_id;
proto_item *transport_status_flags_item;
proto_tree *transport_status_flags_tree;
@@ -463,7 +463,7 @@ static int elasticsearch_dissect_valid_binary_packet(tvbuff_t *tvb, packet_info
} else {
elasticsearch_decode_binary_response(tvb, pinfo, tree, offset, transport_status_flags);
}
- col_append_fstr(pinfo->cinfo, COL_INFO, "request_id=%lu ", request_id);
+ col_append_fstr(pinfo->cinfo, COL_INFO, "request_id=%"G_GUINT64_FORMAT" ", request_id);
/* Everything is marked as data, return the whole tvb as the length */
@@ -765,4 +765,4 @@ void proto_reg_handoff_elasticsearch(void) {
*
* vi: set shiftwidth=4 tabstop=4 expandtab:
* :indentSize=4:tabSize=8:noTabs=true:
-*/ \ No newline at end of file
+*/