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,
179 { 179 {
180 if (winners >= max_winners) 180 if (winners >= max_winners)
181 { 181 {
182 weprintf ("too many winners detected"); 182 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
183 "libbrandt",
184 "too many winners detected\n");
183 goto fail; 185 goto fail;
184 } 186 }
185 if (-1 != price && j != price) 187 if (-1 != price && j != price)
186 { 188 {
187 weprintf ("multiple winning prices detected"); 189 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
190 "libbrandt",
191 "multiple winning prices detected\n");
188 goto fail; 192 goto fail;
189 } 193 }
190 price = j; 194 price = j;
@@ -201,7 +205,9 @@ mp_priv_determine_outcome (struct BRANDT_Auction *ad,
201 gcry_mpi_point_release (sum_phi); 205 gcry_mpi_point_release (sum_phi);
202 206
203 if (ad->m <= ad->n && winners < max_winners && -1 != price) 207 if (ad->m <= ad->n && winners < max_winners && -1 != price)
204 weprintf ("too few winners detected"); 208 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
209 "libbrandt",
210 "too few winners detected\n");
205 if (0 == winners) 211 if (0 == winners)
206 goto fail; 212 goto fail;
207 213