GStringChunk* text; /* summary text */
} expert_tapdata_t;
-
-
/* Reset expert stats */
static void
expert_stat_reset(void *tapdata)
printf("=============\n");
/* Column headings */
- printf(" Frame Protocol\n");
+ printf(" Frame Group Protocol\n");
/* Items */
for (n=0; n < items->len; n++) {
ei = &g_array_index(items, expert_info_t, n);
- printf("%8u %20s %s\n", ei->packet_num ,ei->protocol, ei->summary);
+ printf("%8u %10s %18s %s\n", ei->packet_num,
+ val_to_str(ei->group, expert_group_vals, "Unknown"),
+ ei->protocol, ei->summary);
}
}
/* Allocate chunk of strings */
hs->text = g_string_chunk_new(100);
+
/* Allocate GArray for each severity level */
for (n=0; n < max_level; n++) {
hs->ei_array[n] = g_array_sized_new(FALSE, FALSE, sizeof(expert_info_t), 1000);