diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 09:34:25 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 09:34:25 +0100 |
commit | 56b43dab7ff80acc4cd0e7ad3057abd5e6bad680 (patch) | |
tree | 74b6a5f1ff6f8994582926112b4102574784f524 /mp_priv.c | |
parent | aee7167739e666ea94c3b68c58a0f7aa1ede238e (diff) |
migrate to GNUNET_log
Diffstat (limited to 'mp_priv.c')
-rw-r--r-- | mp_priv.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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; |