improve some debug

This commit is contained in:
Wim Taymans 2023-07-19 21:39:12 +02:00
parent 2211016516
commit f99fd7d75a
2 changed files with 8 additions and 5 deletions

View file

@ -709,9 +709,10 @@ static int impl_node_process(void *object)
size = SPA_MIN(bd->maxsize - offs, bd->chunk->size);
maxsize = SPA_MIN(maxsize, size);
spa_log_trace_fp(this->log, "%p: mix input %d %p->%p %d %d %d:%d/%d", this,
spa_log_trace_fp(this->log, "%p: mix input %d %p->%p %d %d %d:%d/%d %u", this,
i, inio, outio, inio->status, inio->buffer_id,
offs, size, (int)sizeof(float));
offs, size, (int)sizeof(float),
bd->chunk->flags);
if (!SPA_FLAG_IS_SET(bd->chunk->flags, SPA_CHUNK_FLAG_EMPTY)) {
datas[n_buffers] = SPA_PTROFF(bd->data, offs, void);

View file

@ -434,7 +434,7 @@ static inline uint32_t update_requested(struct stream *impl)
buffer->this.requested = impl->quantum;
res = 1;
}
pw_log_trace_fp("%p: update buffer:%u size:%"PRIu64, impl, id, buffer->this.requested);
pw_log_trace_fp("%p: update buffer:%u req:%"PRIu64, impl, id, buffer->this.requested);
return res;
}
@ -2385,7 +2385,8 @@ struct pw_buffer *pw_stream_dequeue_buffer(struct pw_stream *stream)
errno = -res;
return NULL;
}
pw_log_trace_fp("%p: dequeue buffer %d size:%"PRIu64, stream, b->id, b->this.size);
pw_log_trace_fp("%p: dequeue buffer %d size:%"PRIu64" req:%"PRIu64,
stream, b->id, b->this.size, b->this.requested);
if (b->busy && impl->direction == SPA_DIRECTION_OUTPUT) {
if (SPA_ATOMIC_INC(b->busy->count) > 1) {
@ -2409,7 +2410,8 @@ int pw_stream_queue_buffer(struct pw_stream *stream, struct pw_buffer *buffer)
if (b->busy)
SPA_ATOMIC_DEC(b->busy->count);
pw_log_trace_fp("%p: queue buffer %d", stream, b->id);
pw_log_trace_fp("%p: queue buffer %d size:%"PRIu64, stream, b->id,
b->this.size);
if ((res = queue_push(impl, &impl->queued, b)) < 0)
return res;