In drag_and_drop.c use accessor functions for GtkSelectionData. In
[metze/wireshark/wip.git] / tap-expert.c
index 8f6005632a5667ee746b52940726e31984392df9..fe0448969f8b4ef965beb2f6d762a2f294938fab 100644 (file)
@@ -54,8 +54,6 @@ typedef struct expert_tapdata_t {
     GStringChunk*  text; /* summary text */
 } expert_tapdata_t;
 
-
-
 /* Reset expert stats */
 static void
 expert_stat_reset(void *tapdata)
@@ -129,12 +127,14 @@ static void draw_items_for_severity(GArray *items, const gchar *label)
     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);
     }
 }
 
@@ -175,6 +175,7 @@ static void expert_stat_init(const char *optarg, void *userdata _U_)
 
     /* 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);