From: Bart Polot Date: Wed, 9 Nov 2011 15:50:34 +0000 (+0000) Subject: Improved debug logging X-Git-Tag: initial-import-from-subversion-38251~15982 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a66a9d2fa196b3342ad071c203ebd3387a5d4293;p=oweals%2Fgnunet.git Improved debug logging --- 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