diff options
author | Nils Durner <durner@gnunet.org> | 2009-08-29 17:46:36 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2009-08-29 17:46:36 +0000 |
commit | 77b14843ec9990facf63586919c865d59c3a5996 (patch) | |
tree | 973abf1ae78c42a183da7780d0e1548f195d8610 /src/util/common_logging.c | |
parent | d4f9a375af60b2c7a54e6e835c51da100aa8baa5 (diff) | |
download | gnunet-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.c | 6 |
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 | */ |
277 | void | 278 | void |
278 | GNUNET_log_skip (unsigned int n) | 279 | GNUNET_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 | } |