qcdiag_msg: Add summary info to root node

Change-Id: I9769c6834a5fed6698695170e4bac775922c1a14
This commit is contained in:
Harald Welte 2017-01-08 12:57:51 +01:00 committed by Harald Welte
parent d570049af3
commit 1ed4f95185
1 changed files with 4 additions and 0 deletions

View File

@ -180,10 +180,14 @@ dissect_qcdiag_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * d
break;
}
proto_item_append_text(ti, ", Subsys: %u, Mask: 0x%04x, %s:%u",
subsys_id, subsys_mask, file_name, line_nr);
if (str) {
col_append_str((pinfo)->cinfo, COL_INFO, str);
gi = proto_tree_add_string(diag_msg_tree, hf_qcdiag_msg_formatted_str, tvb, fmtstr_offset, strlen(fmtstr), str);
PROTO_ITEM_SET_GENERATED(gi);
proto_item_append_text(ti, " %s", str);
}
return tvb_captured_length(tvb);