From: Julius Bünger Date: Fri, 13 May 2016 22:49:19 +0000 (+0000) Subject: -rps: logging X-Git-Tag: initial-import-from-subversion-38251~876 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a4dc4b16eaa5101aba46168ad7d809a1f3086c0c;p=oweals%2Fgnunet.git -rps: logging --- diff --git a/src/rps/gnunet-rps.c b/src/rps/gnunet-rps.c index 705c2c9b0..3dbb8053e 100644 --- a/src/rps/gnunet-rps.c +++ b/src/rps/gnunet-rps.c @@ -26,6 +26,7 @@ #include "platform.h" #include "gnunet_util_lib.h" #include "gnunet_rps_service.h" +#include static int ret; @@ -146,7 +147,7 @@ run (void *cls, /* If number was specified use it, else request single peer. */ num_peers = (NULL == args[0]) ? 1 : atoi (args[0]); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Requesting %u PeerIDs\n", num_peers); + "Requesting %" PRIu64 " PeerIDs\n", num_peers); req_handle = GNUNET_RPS_request_peers (rps_handle, num_peers, reply_handle, NULL); GNUNET_SCHEDULER_add_shutdown (&do_shutdown, NULL); } diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 128a81f21..e0fbdbb88 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c @@ -396,7 +396,7 @@ tofile_ (const char *file_name, const char *line) if (size != size2) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "Unable to write to file! (Size: %u, size2: %u)\n", + "Unable to write to file! (Size: %lu, size2: %lu)\n", size, size2); return;