From a4dc4b16eaa5101aba46168ad7d809a1f3086c0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Fri, 13 May 2016 22:49:19 +0000 Subject: [PATCH] -rps: logging --- src/rps/gnunet-rps.c | 3 ++- src/rps/test_rps.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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; -- 2.25.1