aboutsummaryrefslogtreecommitdiff
path: root/mp_priv.c
diff options
context:
space:
mode:
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;