mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	protocol-native: add some more debug
This commit is contained in:
		
							parent
							
								
									e75fc459b3
								
							
						
					
					
						commit
						bf18ba839f
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -285,6 +285,7 @@ process_messages(struct client_data *data)
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (client->core_resource == NULL) {
 | 
							if (client->core_resource == NULL) {
 | 
				
			||||||
 | 
								pw_log_debug("%p: no core resource", client);
 | 
				
			||||||
			res = -EPROTO;
 | 
								res = -EPROTO;
 | 
				
			||||||
			goto error;
 | 
								goto error;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -258,10 +258,12 @@ recv_error:
 | 
				
			||||||
	return -errno;
 | 
						return -errno;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cmsgs_truncated:
 | 
					cmsgs_truncated:
 | 
				
			||||||
 | 
						pw_log_debug("connection %p: cmsg truncated", conn);
 | 
				
			||||||
	close_all_fds(&msg, CMSG_FIRSTHDR(&msg));
 | 
						close_all_fds(&msg, CMSG_FIRSTHDR(&msg));
 | 
				
			||||||
	return -EPROTO;
 | 
						return -EPROTO;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
too_many_fds:
 | 
					too_many_fds:
 | 
				
			||||||
 | 
						pw_log_debug("connection %p: too many fds", conn);
 | 
				
			||||||
	close_all_fds(&msg, cmsg);
 | 
						close_all_fds(&msg, cmsg);
 | 
				
			||||||
	return -EPROTO;
 | 
						return -EPROTO;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue