Improved debug logging
authorBart Polot <bart@net.in.tum.de>
Wed, 9 Nov 2011 15:50:34 +0000 (15:50 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 9 Nov 2011 15:50:34 +0000 (15:50 +0000)
src/testing/testing_group.c
src/testing/testing_peergroup.c

index db763d22a98612f2b4f3882dbbb59e36740c9a9e..dbc1690909e1ebaca23059e8d81fe87f30f5095f 100644 (file)
@@ -30,9 +30,9 @@
 #include "gnunet_testing_lib.h"
 #include "gnunet_core_service.h"
 
-#define VERBOSE_TESTING GNUNET_EXTRA_LOGGING
+#define VERBOSE_TESTING 2
 
-#define VERBOSE_TOPOLOGY GNUNET_EXTRA_LOGGING
+#define VERBOSE_TOPOLOGY 2
 
 #define DEBUG_CHURN GNUNET_EXTRA_LOGGING
 
index f904269f934f3753b08791dc08afc649911944ca..837b50c084e6977b63bc51f36f028522e062d21e 100644 (file)
@@ -566,7 +566,7 @@ internal_hostkey_callback (void *cls, const struct GNUNET_PeerIdentity *id,
 #if VERBOSE > 1
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Hostkey (%d/%d) created for peer `%s'\n",
-              pg_start_ctx->total - pg_start_ctx->peers_left,
+              pg_start_ctx->total - pg_start_ctx->peers_left + 1,
               pg_start_ctx->total, GNUNET_i2s (id));
 #endif