From 357e47c49c6d3f67b0e472578aa4590633aeeb63 Mon Sep 17 00:00:00 2001 From: Tomasz Lauda Date: Mon, 1 Jul 2019 14:49:40 +0200 Subject: [PATCH] buffer: improve traces Improves traces for comp_update_buffer_produce and comp_update_buffer_consume functions. Now we will be able to easy identify failing components. Signed-off-by: Tomasz Lauda --- src/audio/buffer.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/audio/buffer.c b/src/audio/buffer.c index 6bee0e4ac..c2fceb9fe 100644 --- a/src/audio/buffer.c +++ b/src/audio/buffer.c @@ -91,7 +91,11 @@ void comp_update_buffer_produce(struct comp_buffer *buffer, uint32_t bytes) /* return if no bytes */ if (!bytes) { trace_buffer("comp_update_buffer_produce(), " - "no bytes to produce"); + "no bytes to produce, source->comp.id = %u, " + "source->comp.type = %u, sink->comp.id = %u, " + "sink->comp.type = %u", buffer->source->comp.id, + buffer->source->comp.type, buffer->sink->comp.id, + buffer->sink->comp.type); return; } @@ -165,7 +169,11 @@ void comp_update_buffer_consume(struct comp_buffer *buffer, uint32_t bytes) /* return if no bytes */ if (!bytes) { trace_buffer("comp_update_buffer_consume(), " - "no bytes to consume"); + "no bytes to consume, source->comp.id = %u, " + "source->comp.type = %u, sink->comp.id = %u, " + "sink->comp.type = %u", buffer->source->comp.id, + buffer->source->comp.type, buffer->sink->comp.id, + buffer->sink->comp.type); return; }