From 1908394af439a0f34d61e20015ee8d0a70a73bb8 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Mon, 9 Apr 2018 21:25:41 +0200 Subject: [PATCH] Add some extra logging --- src/iostream.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/iostream.c b/src/iostream.c index 954a85f..f441916 100644 --- a/src/iostream.c +++ b/src/iostream.c @@ -25,6 +25,7 @@ #include "iostream-private.h" #include "context-private.h" +#include "platform.h" dc_iostream_t * dc_iostream_allocate (dc_context_t *context, const dc_iostream_vtable_t *vtable, dc_transport_t transport) @@ -141,6 +142,8 @@ dc_iostream_get_lines (dc_iostream_t *iostream, unsigned int *value) status = iostream->vtable->get_lines (iostream, &lines); + INFO (iostream->context, "Lines: value=%u", lines); + out: if (value) *value = lines; @@ -161,6 +164,8 @@ dc_iostream_get_available (dc_iostream_t *iostream, size_t *value) status = iostream->vtable->get_available (iostream, &available); + INFO (iostream->context, "Available: value=" DC_PRINTF_SIZE, available); + out: if (value) *value = available;