From f42e5bc9c0eb6c0e228018711694c80cdc5bc5c1 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Fri, 14 Jun 2013 19:46:54 +0000 Subject: Remove check_col() and the occasional tree. This leaves just the Pidl dissectors remaining for removal of check_col() in the dissectors directory. A small handful of check_col() calls remain outside of the dissectors. svn path=/trunk/; revision=49941 --- epan/dissectors/packet-x29.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-x29.c') diff --git a/epan/dissectors/packet-x29.c b/epan/dissectors/packet-x29.c index 135c1c57ee..1c91d45cba 100644 --- a/epan/dissectors/packet-x29.c +++ b/epan/dissectors/packet-x29.c @@ -100,11 +100,10 @@ dissect_x29(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * Q bit set - this is a PAD message. */ msg_code = tvb_get_guint8(tvb, offset); - if (check_col(pinfo->cinfo, COL_INFO)) { - col_add_fstr(pinfo->cinfo, COL_INFO, "%s PAD message", + col_add_fstr(pinfo->cinfo, COL_INFO, "%s PAD message", val_to_str(msg_code, message_code_vals, "Unknown (0x%02x)")); - } + proto_tree_add_uint(x29_tree, hf_msg_code, tvb, offset, 1, msg_code); offset++; -- cgit v1.2.3