aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/proto.c2
-rw-r--r--tshark.c8
2 files changed, 2 insertions, 8 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 42689a36ac..0ddbcba1db 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -889,6 +889,7 @@ void
proto_register_prefix(const char *prefix, prefix_initializer_t pi ) {
if (! prefixes ) {
prefixes = g_hash_table_new(prefix_hash, prefix_equal);
+fprintf(stderr, "Created prefixes hash table: %p\n", prefixes);
}
g_hash_table_insert(prefixes, (gpointer)prefix, (gpointer)pi);
@@ -904,6 +905,7 @@ initialize_prefix(gpointer k, gpointer v, gpointer u _U_) {
/** Initialize every remaining uninitialized prefix. */
void
proto_initialize_all_prefixes(void) {
+fprintf(stderr, "proto_initialize_all_prefixes(): prefixes %p\n", prefixes);
g_hash_table_foreach_remove(prefixes, initialize_prefix, NULL);
}
diff --git a/tshark.c b/tshark.c
index b4924a3f96..7a8c2d4d63 100644
--- a/tshark.c
+++ b/tshark.c
@@ -829,18 +829,11 @@ main(int argc, char *argv[])
XXX - we do this here, for now, to support "-G" with no arguments.
If none of our build or other processes uses "-G" with no arguments,
we can just process it with the other arguments. */
-fprintf(stderr, "Checking for -G\n");
if (argc >= 2 && strcmp(argv[1], "-G") == 0) {
-fprintf(stderr, "-G detected\n");
proto_initialize_all_prefixes();
-fprintf(stderr, "proto_initialize_all_prefixes() returned\n");
if (argc == 2)
-{
-fprintf(stderr, "calling proto_registrar_dump_fields()\n");
proto_registrar_dump_fields();
-fprintf(stderr, "proto_registrar_dump_fields() returned\n");
-}
else {
if (strcmp(argv[2], "column-formats") == 0)
column_dump_column_formats();
@@ -885,7 +878,6 @@ fprintf(stderr, "proto_registrar_dump_fields() returned\n");
return 1;
}
}
-fprintf(stderr, "About to return\n");
return 0;
}