From 475b14968d918a78315ea028fc1cbfcdea8e71f8 Mon Sep 17 00:00:00 2001 From: wachs Date: Fri, 14 Sep 2012 08:19:23 +0000 Subject: - print key when put git-svn-id: https://gnunet.org/svn/gnunet@23776 140774ce-b5e7-0310-ab8b-a85725594a96 --- src/dht/gnunet-dht-put.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dht/gnunet-dht-put.c b/src/dht/gnunet-dht-put.c index 155e1f7d33..f1d8fb56e1 100644 --- a/src/dht/gnunet-dht-put.c +++ b/src/dht/gnunet-dht-put.c @@ -31,6 +31,11 @@ */ static unsigned int query_type; +/** + * The key used in the DHT + */ +struct GNUNET_HashCode key; + /** * The key for the query */ @@ -105,7 +110,7 @@ message_sent_cont (void *cls, int success) switch (success) { case GNUNET_OK: - FPRINTF (stderr, "%s", _("PUT request sent!\n")); + FPRINTF (stderr, "%s `%s'!\n", _("PUT request sent with key"), GNUNET_h2s_full(&key)); break; case GNUNET_NO: FPRINTF (stderr, "%s", _("Timeout sending PUT request!\n")); @@ -135,7 +140,6 @@ run (void *cls, char *const *args, const char *cfgfile, { struct GNUNET_TIME_Relative timeout; struct GNUNET_TIME_Absolute expiration; - struct GNUNET_HashCode key; cfg = c; -- cgit v1.2.3-18-g5258