mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Improve debug log a little
This commit is contained in:
		
							parent
							
								
									dd80b76cb0
								
							
						
					
					
						commit
						a2b391b5c7
					
				
					 3 changed files with 9 additions and 6 deletions
				
			
		| 
						 | 
					@ -1993,12 +1993,15 @@ static struct buffer *peek_buffer(struct impl *this, struct port *port)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct buffer *b;
 | 
						struct buffer *b;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (spa_list_is_empty(&port->queue))
 | 
						if (spa_list_is_empty(&port->queue)) {
 | 
				
			||||||
 | 
							spa_log_trace_fp(this->log, "%p: out of buffers on port %d %d",
 | 
				
			||||||
 | 
								this, port->id, port->n_buffers);
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	b = spa_list_first(&port->queue, struct buffer, link);
 | 
						b = spa_list_first(&port->queue, struct buffer, link);
 | 
				
			||||||
	spa_log_trace_fp(this->log, "%p: peek buffer %d on port %d %u",
 | 
						spa_log_trace_fp(this->log, "%p: peek buffer %d/%d on port %d %u",
 | 
				
			||||||
			this, b->id, port->id, b->flags);
 | 
								this, b->id, port->n_buffers, port->id, b->flags);
 | 
				
			||||||
	return b;
 | 
						return b;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -792,12 +792,12 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *node,
 | 
				
			||||||
	/* now follow all the links from the nodes in the queue
 | 
						/* now follow all the links from the nodes in the queue
 | 
				
			||||||
	 * and add the peers to the queue. */
 | 
						 * and add the peers to the queue. */
 | 
				
			||||||
	spa_list_consume(n, &queue, sort_link) {
 | 
						spa_list_consume(n, &queue, sort_link) {
 | 
				
			||||||
		pw_log_debug(" next node %p: '%s'", n, n->name);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		spa_list_remove(&n->sort_link);
 | 
							spa_list_remove(&n->sort_link);
 | 
				
			||||||
		spa_list_append(collect, &n->sort_link);
 | 
							spa_list_append(collect, &n->sort_link);
 | 
				
			||||||
		n->passive = !n->always_process;
 | 
							n->passive = !n->always_process;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							pw_log_debug(" next node %p: '%s' passive:%u", n, n->name, n->passive);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (!n->active)
 | 
							if (!n->active)
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1108,7 +1108,7 @@ static inline int process_node(void *data)
 | 
				
			||||||
	a->status = PW_NODE_ACTIVATION_AWAKE;
 | 
						a->status = PW_NODE_ACTIVATION_AWAKE;
 | 
				
			||||||
	a->awake_time = SPA_TIMESPEC_TO_NSEC(&ts);
 | 
						a->awake_time = SPA_TIMESPEC_TO_NSEC(&ts);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_trace_fp("%p: process %"PRIu64, this, a->awake_time);
 | 
						pw_log_trace_fp("%p: %s process %"PRIu64, this, this->name, a->awake_time);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* when transport sync is not supported, just clear the flag */
 | 
						/* when transport sync is not supported, just clear the flag */
 | 
				
			||||||
	if (!this->transport_sync)
 | 
						if (!this->transport_sync)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue