aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2009-08-29 17:46:36 +0000
committerNils Durner <durner@gnunet.org>2009-08-29 17:46:36 +0000
commit77b14843ec9990facf63586919c865d59c3a5996 (patch)
tree973abf1ae78c42a183da7780d0e1548f195d8610 /src/util/common_logging.c
parentd4f9a375af60b2c7a54e6e835c51da100aa8baa5 (diff)
downloadgnunet-77b14843ec9990facf63586919c865d59c3a5996.tar.gz
gnunet-77b14843ec9990facf63586919c865d59c3a5996.zip
don't fail in testcases
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r--src/util/common_logging.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index 0ed40b839..263aa7bac 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -273,12 +273,16 @@ flush_bulk (const char *datestr)
273 * Ignore the next n calls to the log function. 273 * Ignore the next n calls to the log function.
274 * 274 *
275 * @param n number of log calls to ignore 275 * @param n number of log calls to ignore
276 * @param check_reset GNUNET_YES to assert that the log skip counter is currently zero
276 */ 277 */
277void 278void
278GNUNET_log_skip (unsigned int n) 279GNUNET_log_skip (unsigned int n, int check_reset)
279{ 280{
280 if (n == 0) 281 if (n == 0)
281 skip_log = 0; 282 skip_log = 0;
283 if (check_reset)
284 GNUNET_assert (ok);
285 }
282 else 286 else
283 skip_log += n; 287 skip_log += n;
284} 288}