diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
commit | 416c2f5a713b93ba689a8cd1e038682a53e6bc17 (patch) | |
tree | 987f51d9edfddc02afe1524df5e1156b920c71d4 /src/fs/gnunet-unindex.c | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/fs/gnunet-unindex.c')
-rw-r--r-- | src/fs/gnunet-unindex.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fs/gnunet-unindex.c b/src/fs/gnunet-unindex.c index 25560ca10..3e8308df2 100644 --- a/src/fs/gnunet-unindex.c +++ b/src/fs/gnunet-unindex.c | |||
@@ -86,19 +86,19 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
86 | if (verbose) | 86 | if (verbose) |
87 | { | 87 | { |
88 | s = GNUNET_STRINGS_relative_time_to_string (info->value.unindex.eta); | 88 | s = GNUNET_STRINGS_relative_time_to_string (info->value.unindex.eta); |
89 | fprintf (stdout, _("Unindexing at %llu/%llu (%s remaining)\n"), | 89 | FPRINTF (stdout, _("Unindexing at %llu/%llu (%s remaining)\n"), |
90 | (unsigned long long) info->value.unindex.completed, | 90 | (unsigned long long) info->value.unindex.completed, |
91 | (unsigned long long) info->value.unindex.size, s); | 91 | (unsigned long long) info->value.unindex.size, s); |
92 | GNUNET_free (s); | 92 | GNUNET_free (s); |
93 | } | 93 | } |
94 | break; | 94 | break; |
95 | case GNUNET_FS_STATUS_UNINDEX_ERROR: | 95 | case GNUNET_FS_STATUS_UNINDEX_ERROR: |
96 | fprintf (stderr, _("Error unindexing: %s.\n"), | 96 | FPRINTF (stderr, _("Error unindexing: %s.\n"), |
97 | info->value.unindex.specifics.error.message); | 97 | info->value.unindex.specifics.error.message); |
98 | GNUNET_SCHEDULER_shutdown (); | 98 | GNUNET_SCHEDULER_shutdown (); |
99 | break; | 99 | break; |
100 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: | 100 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: |
101 | fprintf (stdout, _("Unindexing done.\n")); | 101 | FPRINTF (stdout, "%s", _("Unindexing done.\n")); |
102 | GNUNET_SCHEDULER_shutdown (); | 102 | GNUNET_SCHEDULER_shutdown (); |
103 | break; | 103 | break; |
104 | case GNUNET_FS_STATUS_UNINDEX_STOPPED: | 104 | case GNUNET_FS_STATUS_UNINDEX_STOPPED: |
@@ -106,7 +106,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
106 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 106 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
107 | break; | 107 | break; |
108 | default: | 108 | default: |
109 | fprintf (stderr, _("Unexpected status: %d\n"), info->status); | 109 | FPRINTF (stderr, _("Unexpected status: %d\n"), info->status); |
110 | break; | 110 | break; |
111 | } | 111 | } |
112 | return NULL; | 112 | return NULL; |
@@ -138,14 +138,14 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
138 | GNUNET_FS_FLAGS_NONE, GNUNET_FS_OPTIONS_END); | 138 | GNUNET_FS_FLAGS_NONE, GNUNET_FS_OPTIONS_END); |
139 | if (NULL == ctx) | 139 | if (NULL == ctx) |
140 | { | 140 | { |
141 | fprintf (stderr, _("Could not initialize `%s' subsystem.\n"), "FS"); | 141 | FPRINTF (stderr, _("Could not initialize `%s' subsystem.\n"), "FS"); |
142 | ret = 1; | 142 | ret = 1; |
143 | return; | 143 | return; |
144 | } | 144 | } |
145 | uc = GNUNET_FS_unindex_start (ctx, args[0], NULL); | 145 | uc = GNUNET_FS_unindex_start (ctx, args[0], NULL); |
146 | if (NULL == uc) | 146 | if (NULL == uc) |
147 | { | 147 | { |
148 | fprintf (stderr, _("Could not start unindex operation.\n")); | 148 | FPRINTF (stderr, "%s", _("Could not start unindex operation.\n")); |
149 | GNUNET_FS_stop (ctx); | 149 | GNUNET_FS_stop (ctx); |
150 | return; | 150 | return; |
151 | } | 151 | } |