diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-01-24 13:20:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-01-24 13:20:48 +0000 |
commit | c45ae3089f9c7dfd619cf978726a6be5c317c47d (patch) | |
tree | 0a4d3b2cd1167fdfdd376ebda9b69377a5c05d80 /src/fs/gnunet-download.c | |
parent | 79f3d7ad05adbe35cfbdb5031cb7d1c9b7b2def4 (diff) | |
download | gnunet-c45ae3089f9c7dfd619cf978726a6be5c317c47d.tar.gz gnunet-c45ae3089f9c7dfd619cf978726a6be5c317c47d.zip |
proper use of full data and fixing event signalling
Diffstat (limited to 'src/fs/gnunet-download.c')
-rw-r--r-- | src/fs/gnunet-download.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c index 5301edb05..689cf573d 100644 --- a/src/fs/gnunet-download.c +++ b/src/fs/gnunet-download.c | |||
@@ -99,6 +99,10 @@ progress_cb (void *cls, | |||
99 | switch (info->status) | 99 | switch (info->status) |
100 | { | 100 | { |
101 | case GNUNET_FS_STATUS_DOWNLOAD_START: | 101 | case GNUNET_FS_STATUS_DOWNLOAD_START: |
102 | if (verbose > 1) | ||
103 | fprintf (stderr, | ||
104 | _("Starting download `%s'.\n"), | ||
105 | info->value.download.filename); | ||
102 | break; | 106 | break; |
103 | case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: | 107 | case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: |
104 | if (verbose) | 108 | if (verbose) |
@@ -281,7 +285,7 @@ main (int argc, char *const *argv) | |||
281 | 0, &GNUNET_GETOPT_set_one, &do_recursive}, | 285 | 0, &GNUNET_GETOPT_set_one, &do_recursive}, |
282 | {'V', "verbose", NULL, | 286 | {'V', "verbose", NULL, |
283 | gettext_noop ("be verbose (print progress information)"), | 287 | gettext_noop ("be verbose (print progress information)"), |
284 | 0, &GNUNET_GETOPT_set_one, &verbose}, | 288 | 0, &GNUNET_GETOPT_increment_value, &verbose}, |
285 | GNUNET_GETOPT_OPTION_END | 289 | GNUNET_GETOPT_OPTION_END |
286 | }; | 290 | }; |
287 | return (GNUNET_OK == | 291 | return (GNUNET_OK == |