From a66a9d2fa196b3342ad071c203ebd3387a5d4293 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 9 Nov 2011 15:50:34 +0000 Subject: [PATCH] Improved debug logging --- src/testing/testing_group.c | 4 ++-- src/testing/testing_peergroup.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index db763d22a..dbc169090 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c @@ -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 diff --git a/src/testing/testing_peergroup.c b/src/testing/testing_peergroup.c index f904269f9..837b50c08 100644 --- a/src/testing/testing_peergroup.c +++ b/src/testing/testing_peergroup.c @@ -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 -- 2.25.1