diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-17 17:36:18 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-17 17:36:18 +0100 |
commit | a11fe354cb23c7b39f2ce408d672ecfae8b92b0f (patch) | |
tree | 7926947afc1528b2ed5003c138f88a55033dfe87 /src/secretsharing | |
parent | 421ad27103356b4a21636c76618bf374b2e10bc9 (diff) |
fix fprintf format string warnings
Diffstat (limited to 'src/secretsharing')
-rw-r--r-- | src/secretsharing/gnunet-service-secretsharing.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/secretsharing/gnunet-service-secretsharing.c b/src/secretsharing/gnunet-service-secretsharing.c index 6c281df86b..e157b13ff3 100644 --- a/src/secretsharing/gnunet-service-secretsharing.c +++ b/src/secretsharing/gnunet-service-secretsharing.c @@ -1384,9 +1384,9 @@ keygen_round2_new_element (void *cls, if (element->size != expected_element_size) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "keygen round2 data with wrong size (%u) in consensus, " - " %lu expected\n", - element->size, expected_element_size); + "keygen round2 data with wrong size (%u) in consensus, %u expected\n", + (unsigned int) element->size, + (unsigned int) expected_element_size); return; } @@ -1934,10 +1934,15 @@ decrypt_new_element (void *cls, { char *tmp1_str; char *tmp2_str; + tmp1_str = mpi_to_str (tmp1); tmp2_str = mpi_to_str (tmp2); - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "P%u: Received invalid partial decryption from P%ld (eqn 1), expected %s got %s\n", - session->share->my_peer, info - session->info, tmp1_str, tmp2_str); + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "P%u: Received invalid partial decryption from P%u (eqn 1), expected %s got %s\n", + session->share->my_peer, + (unsigned int) (info - session->info), + tmp1_str, + tmp2_str); GNUNET_free (tmp1_str); GNUNET_free (tmp2_str); goto cleanup; @@ -1952,8 +1957,10 @@ decrypt_new_element (void *cls, if (0 != gcry_mpi_cmp (tmp1, tmp2)) { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "P%u: Received invalid partial decryption from P%ld (eqn 2)\n", - session->share->my_peer, info - session->info); + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "P%u: Received invalid partial decryption from P%u (eqn 2)\n", + session->share->my_peer, + (unsigned int) (info - session->info)); goto cleanup; } |