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/peerinfo/perf_peerinfo_api.c | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/peerinfo/perf_peerinfo_api.c')
-rwxr-xr-x | src/peerinfo/perf_peerinfo_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peerinfo/perf_peerinfo_api.c b/src/peerinfo/perf_peerinfo_api.c index 38bbb828f..e69b487d5 100755 --- a/src/peerinfo/perf_peerinfo_api.c +++ b/src/peerinfo/perf_peerinfo_api.c | |||
@@ -56,7 +56,7 @@ check_it (void *cls, const struct GNUNET_HELLO_Address *address, | |||
56 | #if DEBUG | 56 | #if DEBUG |
57 | if (addrlen > 0) | 57 | if (addrlen > 0) |
58 | { | 58 | { |
59 | fprintf (stderr, "name: %s, addr: %s\n", tname, (const char *) addr); | 59 | FPRINTF (stderr, "name: %s, addr: %s\n", tname, (const char *) addr); |
60 | } | 60 | } |
61 | #endif | 61 | #endif |
62 | return GNUNET_OK; | 62 | return GNUNET_OK; |
@@ -110,13 +110,13 @@ process (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
110 | if (peer == NULL) | 110 | if (peer == NULL) |
111 | { | 111 | { |
112 | #if DEBUG | 112 | #if DEBUG |
113 | fprintf (stderr, "Process received NULL response\n"); | 113 | FPRINTF (stderr, "Process received NULL response\n"); |
114 | #endif | 114 | #endif |
115 | } | 115 | } |
116 | else | 116 | else |
117 | { | 117 | { |
118 | #if DEBUG | 118 | #if DEBUG |
119 | fprintf (stderr, "Processed a peer\n"); | 119 | FPRINTF (stderr, "Processed a peer\n"); |
120 | #endif | 120 | #endif |
121 | numpeers++; | 121 | numpeers++; |
122 | if (0 && (hello != NULL)) | 122 | if (0 && (hello != NULL)) |
@@ -179,7 +179,7 @@ check () | |||
179 | GNUNET_assert (NULL != proc); | 179 | GNUNET_assert (NULL != proc); |
180 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv, | 180 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv, |
181 | "perf-peerinfo-api", "nohelp", options, &run, &ok); | 181 | "perf-peerinfo-api", "nohelp", options, &run, &ok); |
182 | fprintf (stderr, "Received %u/%u calls before timeout\n", numpeers, | 182 | FPRINTF (stderr, "Received %u/%u calls before timeout\n", numpeers, |
183 | NUM_REQUESTS * NUM_REQUESTS / 2); | 183 | NUM_REQUESTS * NUM_REQUESTS / 2); |
184 | GAUGER ("PEERINFO", "Peerinfo lookups", numpeers / 30, "peers/s"); | 184 | GAUGER ("PEERINFO", "Peerinfo lookups", numpeers / 30, "peers/s"); |
185 | #if START_SERVICE | 185 | #if START_SERVICE |