[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9247 - GNUnet/src/applications/fs/lib
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9247 - GNUnet/src/applications/fs/lib |
Date: |
Thu, 22 Oct 2009 19:07:18 -0600 |
Author: nevans
Date: 2009-10-22 19:07:18 -0600 (Thu, 22 Oct 2009)
New Revision: 9247
Modified:
GNUnet/src/applications/fs/lib/fslib.c
Log:
extra debugging info
Modified: GNUnet/src/applications/fs/lib/fslib.c
===================================================================
--- GNUnet/src/applications/fs/lib/fslib.c 2009-10-23 01:06:23 UTC (rev
9246)
+++ GNUnet/src/applications/fs/lib/fslib.c 2009-10-23 01:07:18 UTC (rev
9247)
@@ -30,7 +30,7 @@
#include "fs.h"
#include "ecrs_core.h"
-#define DEBUG_FSLIB GNUNET_NO
+#define DEBUG_FSLIB GNUNET_YES
/**
* How often should we automatically retry a request
@@ -376,6 +376,7 @@
CS_fs_request_search_MESSAGE *req;
#if DEBUG_FSLIB
GNUNET_EncName enc;
+ GNUNET_EncName target_enc;
#endif
ret = GNUNET_malloc (sizeof (struct GNUNET_FS_SearchHandle) +
@@ -384,7 +385,15 @@
req = (CS_fs_request_search_MESSAGE *) & ret[1];
#if DEBUG_FSLIB
GNUNET_hash_to_enc (keys, &enc);
- fprintf (stderr, "FSLIB: start search for `%s' (%p)\n", (char *) &enc, ret);
+ if (target != NULL)
+ {
+ GNUNET_hash_to_enc (&target->hashPubKey, &target_enc);
+ fprintf (stderr, "FSLIB: start search for `%s' (%p), target is %s\n",
+ (char *) &enc, ret, (char *) &target_enc);
+ }
+ else
+ fprintf (stderr, "FSLIB: start search for `%s' (%p)\n", (char *) &enc,
+ ret);
#endif
req->header.size =
htons (sizeof (CS_fs_request_search_MESSAGE) +
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9247 - GNUnet/src/applications/fs/lib,
gnunet <=