[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24958 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24958 - gnunet/src/mesh |
Date: |
Wed, 14 Nov 2012 15:21:18 +0100 |
Author: bartpolot
Date: 2012-11-14 15:21:18 +0100 (Wed, 14 Nov 2012)
New Revision: 24958
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
gnunet/src/mesh/mesh_block_lib.c
gnunet/src/mesh/test_mesh_2dtorus.conf
Log:
- better debug, minor code cleanup
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2012-11-14 14:21:05 UTC (rev
24957)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2012-11-14 14:21:18 UTC (rev
24958)
@@ -1390,7 +1390,7 @@
current_len = strlen (info->description) - ctx->position;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* ctlen : %u\n", current_len);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* tklen : %u\n", len);
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* tk[0] : %c\n", token[0]);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* token : %.*s\n", len, token);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* nextk : %s\n", GNUNET_h2s(key));
if (len > current_len)
{
@@ -1444,7 +1444,7 @@
ctx->longest_match = 0;
result = GNUNET_MESH_regex_block_iterate (block, size,
®ex_edge_iterator, ctx);
- GNUNET_break (GNUNET_OK == result || SIZE_MAX == size);
+ GNUNET_break (GNUNET_OK == result);
/* Did anything match? */
if (0 == ctx->longest_match)
Modified: gnunet/src/mesh/mesh_block_lib.c
===================================================================
--- gnunet/src/mesh/mesh_block_lib.c 2012-11-14 14:21:05 UTC (rev 24957)
+++ gnunet/src/mesh/mesh_block_lib.c 2012-11-14 14:21:18 UTC (rev 24958)
@@ -192,7 +192,7 @@
// The total size should be exactly the size of (regex + all edges) blocks
// If size == -1, block is from cache and therefore previously checked and
// assumed correct.
- if (offset == size || (size_t) -1 == size)
+ if (offset == size || SIZE_MAX == size)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"* Block processed, END OK\n");
Modified: gnunet/src/mesh/test_mesh_2dtorus.conf
===================================================================
--- gnunet/src/mesh/test_mesh_2dtorus.conf 2012-11-14 14:21:05 UTC (rev
24957)
+++ gnunet/src/mesh/test_mesh_2dtorus.conf 2012-11-14 14:21:18 UTC (rev
24958)
@@ -15,6 +15,7 @@
ACCEPT_FROM = 127.0.0.1;
HOSTNAME = localhost
PORT = 10001
+DISABLE_TRY_CONNECT = YES
[nse]
WORKBITS = 0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24958 - gnunet/src/mesh,
gnunet <=