aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jsonapi/Makefile.am1
-rw-r--r--src/util/test_common_logging_runtime_loglevels.c22
2 files changed, 15 insertions, 8 deletions
diff --git a/src/jsonapi/Makefile.am b/src/jsonapi/Makefile.am
index 22ae7dac51..f190d3e093 100644
--- a/src/jsonapi/Makefile.am
+++ b/src/jsonapi/Makefile.am
@@ -45,5 +45,6 @@ test_jsonapi_SOURCES = \
test_jsonapi.c
test_jsonapi_LDADD = \
libgnunetjsonapi.la \
+ $(top_builddir)/src/json/libgnunetjson.la \
$(top_builddir)/src/util/libgnunetutil.la \
-ljansson
diff --git a/src/util/test_common_logging_runtime_loglevels.c b/src/util/test_common_logging_runtime_loglevels.c
index 033b16ce1f..c633d7de89 100644
--- a/src/util/test_common_logging_runtime_loglevels.c
+++ b/src/util/test_common_logging_runtime_loglevels.c
@@ -179,16 +179,22 @@ read_output_line (int phase_from1, int phase_to1, int phase_from2,
if (delay_is_a_dummy)
delay_outside_of_range = 1;
- if (!stop)
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Wrong log format?\n");
- if (!level_matches)
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Wrong log level\n");
- if (!delay_is_sane)
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Delay %ld is insane\n", *delay);
- if (!delay_outside_of_range)
+ if (! stop)
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Wrong log format?\n");
+ if (! level_matches)
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Wrong log level\n");
+ if (! delay_is_sane)
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Delay %ld is insane\n",
+ *delay);
+ if (! delay_outside_of_range)
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Delay %ld is not outside of range (%ld ; %ld)\n",
- *delay, delay_lessthan, delay_morethan, c);
+ *delay,
+ delay_lessthan,
+ delay_morethan);
if (!stop || !level_matches || !delay_is_sane || !delay_outside_of_range)
return NULL;
*len = *len - i;