lib: os: mpsc_pbuf: Improve debugging
Improved debugging messages.
static inline void mpsc_state_print(struct mpsc_pbuf_buffer *buffer)
{
if (MPSC_PBUF_DEBUG) {
- printk("wr:%d/%d, rd:%d/%d\n",
+ printk(", wr:%d/%d, rd:%d/%d\n",
buffer->wr_idx, buffer->tmp_wr_idx,
buffer->rd_idx, buffer->tmp_rd_idx);
}
@@ -242,7 +242,7 @@ union mpsc_pbuf_generic *mpsc_pbuf_alloc(struct mpsc_pbuf_buffer *buffer,
uint32_t free_wlen;
bool valid_drop;
- MPSC_PBUF_DBG(buffer, "alloc %d words, ", (int)wlen);
+ MPSC_PBUF_DBG(buffer, "alloc %d words", (int)wlen);
if (wlen > (buffer->size - 1)) {
MPSC_PBUF_DBG(buffer, "Failed to alloc, ");
