diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-09-05 15:21:37 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-09-06 07:43:35 +0000 |
commit | f1ad9eb212a6f4c5e1b6b1963bccf5f3a4900293 (patch) | |
tree | 76dbf5cdfb44b933e8cb131c146292a31bedc68e /epan/dissectors/packet-mysql.c | |
parent | 914169f97e834397bdb058e5a044156fb7c1eab4 (diff) |
MySQL : Eliminate proto_tree_add_text (use proto_tree_add_debug...)
Change-Id: I2e14328715cd11bc1ce31dad91b1cc5ef4091130
Reviewed-on: https://code.wireshark.org/review/4005
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mysql.c')
-rw-r--r-- | epan/dissectors/packet-mysql.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-mysql.c b/epan/dissectors/packet-mysql.c index 86d9f3d777..40e6147ff0 100644 --- a/epan/dissectors/packet-mysql.c +++ b/epan/dissectors/packet-mysql.c @@ -2207,15 +2207,15 @@ dissect_mysql_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dat frame_state = mysql_frame_data_p->state; generation= conn_data->generation; if (tree) { - pi= proto_tree_add_text(mysql_tree, tvb, offset, 0, "conversation: %p", conversation); + pi = proto_tree_add_debug(mysql_tree, tvb, offset, 0, "conversation: %p", conversation); PROTO_ITEM_SET_GENERATED(pi); - pi= proto_tree_add_text(mysql_tree, tvb, offset, 0, "generation: %" G_GINT64_MODIFIER "d", generation); + pi = proto_tree_add_debug(mysql_tree, tvb, offset, 0, "generation: %" G_GINT64_MODIFIER "d", generation); PROTO_ITEM_SET_GENERATED(pi); - pi= proto_tree_add_text(mysql_tree, tvb, offset, 0, "conn state: %s (%u)", + pi = proto_tree_add_debug(mysql_tree, tvb, offset, 0, "conn state: %s (%u)", val_to_str(conn_state_in, state_vals, "Unknown (%u)"), conn_state_in); PROTO_ITEM_SET_GENERATED(pi); - pi= proto_tree_add_text(mysql_tree, tvb, offset, 0, "frame state: %s (%u)", + pi = proto_tree_add_debug(mysql_tree, tvb, offset, 0, "frame state: %s (%u)", val_to_str(frame_state, state_vals, "Unknown (%u)"), frame_state); PROTO_ITEM_SET_GENERATED(pi); @@ -2245,7 +2245,7 @@ dissect_mysql_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dat #ifdef CTDEBUG conn_state_out= conn_data->state; ++(conn_data->generation); - pi= proto_tree_add_text(mysql_tree, tvb, offset, 0, "next proto state: %s (%u)", + pi = proto_tree_add_debug(mysql_tree, tvb, offset, 0, "next proto state: %s (%u)", val_to_str(conn_state_out, state_vals, "Unknown (%u)"), conn_state_out); PROTO_ITEM_SET_GENERATED(pi); |