mirror of https://github.com/thesofproject/sof.git
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:
parent
b4fc677c70
commit
357e47c49c
|
@ -91,7 +91,11 @@ void comp_update_buffer_produce(struct comp_buffer *buffer, uint32_t bytes)
|
||||||
/* return if no bytes */
|
/* return if no bytes */
|
||||||
if (!bytes) {
|
if (!bytes) {
|
||||||
trace_buffer("comp_update_buffer_produce(), "
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +169,11 @@ void comp_update_buffer_consume(struct comp_buffer *buffer, uint32_t bytes)
|
||||||
/* return if no bytes */
|
/* return if no bytes */
|
||||||
if (!bytes) {
|
if (!bytes) {
|
||||||
trace_buffer("comp_update_buffer_consume(), "
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue