From 0ffc7a5d7b067091fc41609e39a6638e5791dcc2 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 18 Aug 2010 08:36:07 +0000 Subject: [PATCH] print correct size --- src/transport/test_transport_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index 225c4f336..7e08ebd4b 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c @@ -129,6 +129,7 @@ stop_arm (struct PeerContext *p) static void end_badly () { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from transports!\n"); GNUNET_break (0); GNUNET_TRANSPORT_disconnect (p1.th); GNUNET_TRANSPORT_disconnect (p2.th); @@ -166,10 +167,11 @@ notify_ready (void *cls, size_t size, void *buf) struct GNUNET_MessageHeader *hdr; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Transmitting message to peer (%p) - %u!\n", cls, size); + "Transmitting message to peer (%p) - %u!\n", cls, sizeof (struct GNUNET_MessageHeader)); GNUNET_assert (size >= 256); GNUNET_assert (ok == 4); OKPP; + if (buf != NULL) { hdr = buf; -- 2.25.1