summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-06-26 12:15:17 +0000
committerBart Polot <bart@net.in.tum.de>2015-06-26 12:15:17 +0000
commitf5dc24025e3fc35c5c10fd7cf22b59b0ebc271ac (patch)
tree947d91cf38066f80f268d1709d50bd98f9504d48 /src
parente9a7ca0fc5b07c4f2cd48bf61540aa189b1ee781 (diff)
- fix log format
Diffstat (limited to 'src')
-rw-r--r--src/cadet/gnunet-service-cadet_tunnel.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c
index e540a6ce8..44e2b9af9 100644
--- a/src/cadet/gnunet-service-cadet_tunnel.c
+++ b/src/cadet/gnunet-service-cadet_tunnel.c
@@ -3089,6 +3089,8 @@ GCT_handle_encrypted (struct CadetTunnel *t,
if (-1 == decrypted_size)
{
GNUNET_break_op (0);
+ LOG (GNUNET_ERROR_TYPE_WARNING, "Wrong crypto on tunnel %s\n", GCT_2s (t));
+ GCT_debug (t, GNUNET_ERROR_TYPE_WARNING);
return;
}
@@ -4365,26 +4367,26 @@ ax_debug (const struct CadetTunnelAxolotl *ax, enum GNUNET_ErrorType level)
struct CadetTunnelSkippedKey *iter;
- LOG2 (level, "TTT RK\t %s\n",
+ LOG2 (level, "TTT RK \t %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &ax->RK));
- LOG2 (level, "TTT HKs\t %s\n",
+ LOG2 (level, "TTT HKs \t %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &ax->HKs));
- LOG2 (level, "TTT HKr\t %s\n",
+ LOG2 (level, "TTT HKr \t %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &ax->HKr));
LOG2 (level, "TTT NHKs\t %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &ax->NHKs));
LOG2 (level, "TTT NHKr\t %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &ax->NHKr));
- LOG2 (level, "TTT CKs\t %s\n",
+ LOG2 (level, "TTT CKs \t %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &ax->CKs));
- LOG2 (level, "TTT CKr\t %s\n",
+ LOG2 (level, "TTT CKr \t %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &ax->CKr));
GNUNET_CRYPTO_ecdhe_key_get_public (ax->DHRs, &pub);
LOG2 (level, "TTT DHRs\t %s\n",
- GNUNET_i2s ((struct GNUNET_PeerIdentity *) &pub));
+ GNUNET_h2s ((struct GNUNET_HashCode *) &pub));
LOG2 (level, "TTT DHRr\t %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &ax->DHRr));