dbg
authorChristian Grothoff <christian@grothoff.org>
Fri, 26 Feb 2010 13:05:09 +0000 (13:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 26 Feb 2010 13:05:09 +0000 (13:05 +0000)
src/fs/fs_test_lib.c
src/fs/test_fs_download.c
src/fs/test_fs_download_data.conf

index ee8ce46c6868c237a5f956fe1dce13da35d25d9b..7fa6707c9afd240c68d05b7a23359118d15954aa 100644 (file)
@@ -191,6 +191,13 @@ progress_cb (void *cls,
                                         daemon,
                                         GNUNET_SCHEDULER_REASON_PREREQ_DONE);
       break;
+    case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS:
+      if (daemon->verbose)
+       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                   "Download at %llu/%llu bytes\n",
+                   (unsigned long long) info->value.download.specifics.progress.offset,
+                   (unsigned long long) info->value.download.size);
+      break;
     case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED:
       GNUNET_SCHEDULER_cancel (daemon->download_sched,
                               daemon->download_timeout_task);
index af1fbfa50f594a9fd46824c08bd8caa0c757393c..afb95bc7189aa71ae4f14367a21bf19f853dd016 100644 (file)
@@ -29,7 +29,7 @@
 #include "gnunet_arm_service.h"
 #include "gnunet_fs_service.h"
 
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_YES
 
 #define START_ARM GNUNET_YES
 
index d575f4f8c372ce6d11887f55d63a216823a82b6b..d61eaca379970b3a0c444727f5c6286d985acb01 100644 (file)
@@ -36,7 +36,7 @@ HOSTNAME = localhost
 [fs]
 PORT = 42471
 HOSTNAME = localhost
-#DEBUG = YES
+DEBUG = YES
 #PREFIX = valgrind --tool=memcheck --leak-check=yes
 #BINARY = /home/grothoff/bin/gnunet-service-fs