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:
Bartosz Kokoszko 2019-05-27 11:22:04 +02:00 committed by Liam Girdwood
parent ad03e04fdf
commit 3e24390a62
1 changed files with 8 additions and 4 deletions

View File

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