diff options
author | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-09-14 08:19:23 +0000 |
---|---|---|
committer | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-09-14 08:19:23 +0000 |
commit | 475b14968d918a78315ea028fc1cbfcdea8e71f8 (patch) | |
tree | 25abdf6b839c0fbfdd18de460db72ac3c61baae1 | |
parent | e48b977578ba514bbb501dc281c5fbbb63ebaaf4 (diff) |
- print key when put
git-svn-id: https://gnunet.org/svn/gnunet@23776 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r-- | src/dht/gnunet-dht-put.c | 8 |
1 files 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 @@ -32,6 +32,11 @@ static unsigned int query_type; /** + * The key used in the DHT + */ +struct GNUNET_HashCode key; + +/** * The key for the query */ static char *query_key; @@ -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; |