mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Improve logging for layout cells.
This commit is contained in:
		
							
								
								
									
										19
									
								
								layout.c
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								layout.c
									
									
									
									
									
								
							@@ -97,9 +97,24 @@ void
 | 
			
		||||
layout_print_cell(struct layout_cell *lc, const char *hdr, u_int n)
 | 
			
		||||
{
 | 
			
		||||
	struct layout_cell	*lcchild;
 | 
			
		||||
	const char		*type;
 | 
			
		||||
 | 
			
		||||
	log_debug("%s:%*s%p type %u [parent %p] wp=%p [%u,%u %ux%u]", hdr, n,
 | 
			
		||||
	    " ", lc, lc->type, lc->parent, lc->wp, lc->xoff, lc->yoff, lc->sx,
 | 
			
		||||
	switch (lc->type) {
 | 
			
		||||
	case LAYOUT_LEFTRIGHT:
 | 
			
		||||
		type = "LEFTRIGHT";
 | 
			
		||||
		break;
 | 
			
		||||
	case LAYOUT_TOPBOTTOM:
 | 
			
		||||
		type = "TOPBOTTOM";
 | 
			
		||||
		break;
 | 
			
		||||
	case LAYOUT_WINDOWPANE:
 | 
			
		||||
		type = "WINDOWPANE";
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
		type = "UNKNOWN";
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
	log_debug("%s:%*s%p type %s [parent %p] wp=%p [%u,%u %ux%u]", hdr, n,
 | 
			
		||||
	    " ", lc, type, lc->parent, lc->wp, lc->xoff, lc->yoff, lc->sx,
 | 
			
		||||
	    lc->sy);
 | 
			
		||||
	switch (lc->type) {
 | 
			
		||||
	case LAYOUT_LEFTRIGHT:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user