Add some extra logging

This commit is contained in:
Jef Driesen 2018-04-09 21:25:41 +02:00
parent 945898f8fd
commit 1908394af4

View File

@ -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;