mirror of https://github.com/thesofproject/sof.git
buffer: enhance trace message in comp_update_buffer_consume
Using hex %x format in comp_update_buffer_consume for tracing addresses and bitfields is more readible than decimal format. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
This commit is contained in:
parent
ad03e04fdf
commit
3e24390a62
|
@ -222,9 +222,13 @@ void comp_update_buffer_consume(struct comp_buffer *buffer, uint32_t bytes)
|
||||||
|
|
||||||
spin_unlock_irq(&buffer->lock, flags);
|
spin_unlock_irq(&buffer->lock, flags);
|
||||||
|
|
||||||
tracev_buffer("comp_update_buffer_consume(), %u, %u, %u",
|
tracev_buffer("comp_update_buffer_consume(), "
|
||||||
|
"(buffer->avail << 16) | buffer->free = %08x, "
|
||||||
|
"(buffer->ipc_buffer.comp.id << 16) | buffer->size = "
|
||||||
|
" %08x, (buffer->r_ptr - buffer->addr) << 16 | "
|
||||||
|
"(buffer->w_ptr - buffer->addr)) = %08x",
|
||||||
(buffer->avail << 16) | buffer->free,
|
(buffer->avail << 16) | buffer->free,
|
||||||
(buffer->ipc_buffer.comp.id << 16) | buffer->size,
|
(buffer->ipc_buffer.comp.id << 16) | buffer->size,
|
||||||
(buffer->r_ptr - buffer->addr) << 16 |
|
(buffer->r_ptr - buffer->addr) << 16 |
|
||||||
(buffer->w_ptr - buffer->addr));
|
(buffer->w_ptr - buffer->addr));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue