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>
This commit is contained in:
Guy Harris 2014-11-14 10:35:42 -08:00
parent 7390516f61
commit 0e64efc81a
1 changed files with 3 additions and 3 deletions

View File

@ -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:
*/
*/