aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2017-10-17 21:05:07 +0200
committerMichael Mann <mmann78@netscape.net>2017-10-17 23:07:14 +0000
commit1ac9db4ca67b47da79d55e0cf309f1a40ca084f5 (patch)
treea7adc826d0e826f55741174625d50a8381f3828d
parent070e561ed99aca1b5dcc4f47f246f3a761876422 (diff)
Protobuf: Fix format error
Fixes error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'guint64' Change-Id: I431ab2e1920b7856ff686bd79bc881dee494706f Reviewed-on: https://code.wireshark.org/review/23965 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/dissectors/packet-protobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-protobuf.c b/epan/dissectors/packet-protobuf.c
index 4af752c..6a4e27d 100644
--- a/epan/dissectors/packet-protobuf.c
+++ b/epan/dissectors/packet-protobuf.c
@@ -335,7 +335,7 @@ protobuf_dissect_field_value(proto_tree *value_tree, tvbuff_t *tvb, guint offset
case PROTOBUF_TYPE_UINT32:
case PROTOBUF_TYPE_FIXED32: /* same as UINT32 */
proto_tree_add_uint(value_tree, hf_protobuf_value_uint32, tvb, offset, length, (guint32)value);
- proto_item_append_text(ti_field, "%s %lu", prepend_text, value);
+ proto_item_append_text(ti_field, "%s %u", prepend_text, (guint32)value);
break;
case PROTOBUF_TYPE_SINT32: