aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mqtt.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-04-23 13:53:18 -0400
committerEvan Huus <eapache@gmail.com>2014-04-23 17:53:52 +0000
commitf62e8a090c42c164fa1bc8a2e935f14e951ab811 (patch)
treecf577eaefc0045994bcc97b85d8cc1396f0b309a /epan/dissectors/packet-mqtt.c
parent3ff57c86adb373eedaf0295ce20d4f1c4445921a (diff)
Fix format warning.
Change-Id: I6627af8d90299d599db779bde0061191fc514fb3 Reviewed-on: https://code.wireshark.org/review/1307 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mqtt.c')
-rw-r--r--epan/dissectors/packet-mqtt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mqtt.c b/epan/dissectors/packet-mqtt.c
index 39a3be3766..e710131132 100644
--- a/epan/dissectors/packet-mqtt.c
+++ b/epan/dissectors/packet-mqtt.c
@@ -219,7 +219,7 @@ static int dissect_mqtt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
mqtt_msg_len = (gint) msg_len;
/* Add each MQTT message as a subtree to main Tree */
- ti_mqtt = proto_tree_add_text(mqtt_tree, tvb, offset, mqtt_msg_len,
+ ti_mqtt = proto_tree_add_text(mqtt_tree, tvb, offset, mqtt_msg_len, "%s",
val_to_str_ext(mqtt_msg_type, &mqtt_msgtype_vals_ext, "Unknown (0x%02x)"));
mqtt_msg_tree = proto_item_add_subtree(ti_mqtt, ett_mqtt_msg);