mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: make page-flip error scarier
The logs don't currently display the importance of a line. It's easy to read "skipping page-flip" as a debug message instead of an error message. Change the error message to make it more explicit. References: https://github.com/swaywm/wlroots/pull/2147
This commit is contained in:
		
							parent
							
								
									904312a0b2
								
							
						
					
					
						commit
						90ede7f838
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -341,7 +341,8 @@ static bool drm_crtc_page_flip(struct wlr_drm_connector *conn,
 | 
				
			||||||
	drmModeModeInfo *drm_mode = mode ? &mode->drm_mode : NULL;
 | 
						drmModeModeInfo *drm_mode = mode ? &mode->drm_mode : NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (conn->pageflip_pending) {
 | 
						if (conn->pageflip_pending) {
 | 
				
			||||||
		wlr_log(WLR_ERROR, "Skipping pageflip on output '%s'", conn->output.name);
 | 
							wlr_log(WLR_ERROR, "Failed to page-flip output '%s': "
 | 
				
			||||||
 | 
								"a page-flip is already pending", conn->output.name);
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue