diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-14 12:42:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-14 12:42:28 +0000 |
commit | 0514c61f6b185d3a7ae98309eca53d83de685ebe (patch) | |
tree | 5777fee5fb4518016ed808fce2e8d35e3f29dfa7 /src/datastore | |
parent | e04b3d81b8fafd6df42755db513d3cc68433d5b1 (diff) | |
download | gnunet-0514c61f6b185d3a7ae98309eca53d83de685ebe.tar.gz gnunet-0514c61f6b185d3a7ae98309eca53d83de685ebe.zip |
better reporting
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/test_datastore_api.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 91350f203..47b1945ad 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c | |||
@@ -182,6 +182,16 @@ check_value (void *cls, const GNUNET_HashCode * key, size_t size, | |||
182 | int i; | 182 | int i; |
183 | 183 | ||
184 | i = crc->i; | 184 | i = crc->i; |
185 | if (NULL == key) | ||
186 | { | ||
187 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
188 | "Value check failed (got NULL key) in %d/%d\n", | ||
189 | crc->phase, crc->i); | ||
190 | crc->phase = RP_ERROR; | ||
191 | GNUNET_SCHEDULER_add_continuation (&run_continuation, crc, | ||
192 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
193 | return; | ||
194 | } | ||
185 | #if 0 | 195 | #if 0 |
186 | fprintf (stderr, "Check value got `%s' of size %u, type %d, expire %llu\n", | 196 | fprintf (stderr, "Check value got `%s' of size %u, type %d, expire %llu\n", |
187 | GNUNET_h2s (key), (unsigned int) size, type, | 197 | GNUNET_h2s (key), (unsigned int) size, type, |