mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	addon: Add more logging
This commit is contained in:
		
							parent
							
								
									b28a9afd4b
								
							
						
					
					
						commit
						7a4fd9064c
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -3,6 +3,7 @@
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <wayland-server-core.h>
 | 
					#include <wayland-server-core.h>
 | 
				
			||||||
#include <wlr/util/addon.h>
 | 
					#include <wlr/util/addon.h>
 | 
				
			||||||
 | 
					#include <wlr/util/log.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void wlr_addon_set_init(struct wlr_addon_set *set) {
 | 
					void wlr_addon_set_init(struct wlr_addon_set *set) {
 | 
				
			||||||
	memset(set, 0, sizeof(*set));
 | 
						memset(set, 0, sizeof(*set));
 | 
				
			||||||
| 
						 | 
					@ -14,6 +15,11 @@ void wlr_addon_set_finish(struct wlr_addon_set *set) {
 | 
				
			||||||
	wl_list_for_each_safe(addon, tmp, &set->addons, link) {
 | 
						wl_list_for_each_safe(addon, tmp, &set->addons, link) {
 | 
				
			||||||
		addon->impl->destroy(addon);
 | 
							addon->impl->destroy(addon);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						wl_list_for_each(addon, &set->addons, link) {
 | 
				
			||||||
 | 
							wlr_log(WLR_ERROR, "Dangling addon: %s\n", addon->impl->name);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	assert(wl_list_empty(&set->addons));
 | 
						assert(wl_list_empty(&set->addons));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue