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 <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2019-07-01 14:49:40 +02:00 committed by Tomasz Lauda
parent b4fc677c70
commit 357e47c49c
1 changed files with 10 additions and 2 deletions

View File

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