From 3e24390a62f3d16075a13bb7789db2f6dfd69846 Mon Sep 17 00:00:00 2001 From: Bartosz Kokoszko Date: Mon, 27 May 2019 11:22:04 +0200 Subject: [PATCH] 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 --- src/audio/buffer.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/audio/buffer.c b/src/audio/buffer.c index b76d8bda9..5cc617d4d 100644 --- a/src/audio/buffer.c +++ b/src/audio/buffer.c @@ -222,9 +222,13 @@ void comp_update_buffer_consume(struct comp_buffer *buffer, uint32_t bytes) 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->ipc_buffer.comp.id << 16) | buffer->size, - (buffer->r_ptr - buffer->addr) << 16 | - (buffer->w_ptr - buffer->addr)); + (buffer->ipc_buffer.comp.id << 16) | buffer->size, + (buffer->r_ptr - buffer->addr) << 16 | + (buffer->w_ptr - buffer->addr)); }