aboutsummaryrefslogtreecommitdiff
path: root/mp_priv.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-12-02 09:34:25 +0100
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-12-02 09:34:25 +0100
commit56b43dab7ff80acc4cd0e7ad3057abd5e6bad680 (patch)
tree74b6a5f1ff6f8994582926112b4102574784f524 /mp_priv.c
parentaee7167739e666ea94c3b68c58a0f7aa1ede238e (diff)
migrate to GNUNET_log
Diffstat (limited to 'mp_priv.c')
-rw-r--r--mp_priv.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mp_priv.c b/mp_priv.c
index 470d0b5..65b5cde 100644
--- a/mp_priv.c
+++ b/mp_priv.c
@@ -179,12 +179,16 @@ mp_priv_determine_outcome (struct BRANDT_Auction *ad,
{
if (winners >= max_winners)
{
- weprintf ("too many winners detected");
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
+ "libbrandt",
+ "too many winners detected\n");
goto fail;
}
if (-1 != price && j != price)
{
- weprintf ("multiple winning prices detected");
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
+ "libbrandt",
+ "multiple winning prices detected\n");
goto fail;
}
price = j;
@@ -201,7 +205,9 @@ mp_priv_determine_outcome (struct BRANDT_Auction *ad,
gcry_mpi_point_release (sum_phi);
if (ad->m <= ad->n && winners < max_winners && -1 != price)
- weprintf ("too few winners detected");
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
+ "libbrandt",
+ "too few winners detected\n");
if (0 == winners)
goto fail;