From 34aad61f423d2f6078ecfe51cb7a650fe528ab96 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 6 May 2016 14:52:12 +0000 Subject: [PATCH] fix ftbfs --- src/jsonapi/Makefile.am | 1 + .../test_common_logging_runtime_loglevels.c | 22 ++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/jsonapi/Makefile.am b/src/jsonapi/Makefile.am index 22ae7dac5..f190d3e09 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 033b16ce1..c633d7de8 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; -- 2.25.1