summaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-10-26 12:10:32 +0000
committerBart Polot <bart@net.in.tum.de>2011-10-26 12:10:32 +0000
commit9a07ba196afb7c09422b0fa33071c4c42079f487 (patch)
tree139d32be037ec4e7228ed7a4df09fd267dbd8957 /src/mesh
parent6e3fa264ddd8f8d3bebd44e37e512ea2dba7d0ba (diff)
Transformed assert into warning
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/test_mesh_small.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index 6545472c9..cf647be56 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -518,12 +518,12 @@ topo_cb (void *cls,
if (p1 == pid1)
{
p2 = GNUNET_PEER_search(second);
- GNUNET_assert(p2 < num_peers);
- if (p2 == 0)
+ if (p2 == 0 || p2 > num_peers)
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "***************** test: %s is UNKNOWN!?\n",
- GNUNET_i2s(second));
+ "***************** test: %s is UNKNOWN!? (%u)\n",
+ GNUNET_i2s(second),
+ p2);
return;
}
mesh_peers[p2]++;
@@ -536,12 +536,12 @@ topo_cb (void *cls,
if (p1 == pid1)
{
p2 = GNUNET_PEER_search(first);
- GNUNET_assert(p2 < num_peers);
- if (p2 == 0)
+ if (p2 == 0 || p2 > num_peers)
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "***************** test: %s is UNKNOWN!?\n",
- GNUNET_i2s(first));
+ "***************** test: %s is UNKNOWN!? (%u)\n",
+ GNUNET_i2s(first),
+ p2);
return;
}
mesh_peers[p2]++;