diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-11 18:33:09 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-11 18:33:09 +0100 |
commit | 538d7fde8cb1c0d079f01f2290aa3e3e2744beff (patch) | |
tree | 7e479adbbaa54b309ab64051413b9283a36877e8 /src/revocation | |
parent | abdec5e11ff11bb10d32c013e11344a54786f80f (diff) | |
download | gnunet-538d7fde8cb1c0d079f01f2290aa3e3e2744beff.tar.gz gnunet-538d7fde8cb1c0d079f01f2290aa3e3e2744beff.zip |
fix logging, immediately switch to full set transmission if other peer has 0 elements
Diffstat (limited to 'src/revocation')
-rw-r--r-- | src/revocation/test_revocation.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/revocation/test_revocation.c b/src/revocation/test_revocation.c index d3bbb879a..8d5593694 100644 --- a/src/revocation/test_revocation.c +++ b/src/revocation/test_revocation.c | |||
@@ -104,8 +104,8 @@ revocation_remote_cb (void *cls, | |||
104 | 104 | ||
105 | if (GNUNET_NO == is_valid) | 105 | if (GNUNET_NO == is_valid) |
106 | { | 106 | { |
107 | fprintf (stderr, | 107 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
108 | "Local revocation successful\n"); | 108 | "Local revocation successful\n"); |
109 | ok = 0; | 109 | ok = 0; |
110 | GNUNET_SCHEDULER_shutdown (); | 110 | GNUNET_SCHEDULER_shutdown (); |
111 | return; | 111 | return; |
@@ -118,8 +118,8 @@ revocation_remote_cb (void *cls, | |||
118 | NULL); | 118 | NULL); |
119 | return; | 119 | return; |
120 | } | 120 | } |
121 | fprintf (stderr, | 121 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
122 | "Flooding of revocation failed\n"); | 122 | "Flooding of revocation failed\n"); |
123 | ok = 2; | 123 | ok = 2; |
124 | GNUNET_SCHEDULER_shutdown (); | 124 | GNUNET_SCHEDULER_shutdown (); |
125 | } | 125 | } |
@@ -141,8 +141,8 @@ revocation_cb (void *cls, | |||
141 | testpeers[1].revok_handle = NULL; | 141 | testpeers[1].revok_handle = NULL; |
142 | if (GNUNET_NO == is_valid) | 142 | if (GNUNET_NO == is_valid) |
143 | { | 143 | { |
144 | fprintf (stderr, | 144 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
145 | "Revocation successful\n"); | 145 | "Revocation successful\n"); |
146 | check_revocation (NULL); | 146 | check_revocation (NULL); |
147 | } | 147 | } |
148 | } | 148 | } |
@@ -386,8 +386,8 @@ test_connection (void *cls, | |||
386 | /* We are generating a CLIQUE */ | 386 | /* We are generating a CLIQUE */ |
387 | if (NUM_TEST_PEERS * (NUM_TEST_PEERS -1) == links_succeeded) | 387 | if (NUM_TEST_PEERS * (NUM_TEST_PEERS -1) == links_succeeded) |
388 | { | 388 | { |
389 | fprintf (stderr, | 389 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
390 | "Testbed connected peers, initializing test\n"); | 390 | "Testbed connected peers, initializing test\n"); |
391 | for (c = 0; c < num_peers; c++) | 391 | for (c = 0; c < num_peers; c++) |
392 | { | 392 | { |
393 | testpeers[c].p = peers[c]; | 393 | testpeers[c].p = peers[c]; |
@@ -403,8 +403,8 @@ test_connection (void *cls, | |||
403 | } | 403 | } |
404 | else | 404 | else |
405 | { | 405 | { |
406 | fprintf (stderr, | 406 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
407 | "Testbed failed to connect peers\n"); | 407 | "Testbed failed to connect peers\n"); |
408 | ok = 5; | 408 | ok = 5; |
409 | GNUNET_SCHEDULER_shutdown (); | 409 | GNUNET_SCHEDULER_shutdown (); |
410 | return; | 410 | return; |