mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Add log.c with info() and warn()
This commit is contained in:
		
							parent
							
								
									5ea1527558
								
							
						
					
					
						commit
						2a17df0f8b
					
				
					 11 changed files with 68 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
#include "labwc.h"
 | 
			
		||||
#include "common/log.h"
 | 
			
		||||
 | 
			
		||||
int xwl_nr_parents(struct view *view)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -6,7 +7,7 @@ int xwl_nr_parents(struct view *view)
 | 
			
		|||
	int i = 0;
 | 
			
		||||
 | 
			
		||||
	if (!s) {
 | 
			
		||||
		fprintf(stderr, "warn: (%s) no xwayland surface\n", __func__);
 | 
			
		||||
		warn("(%s) no xwayland surface\n", __func__);
 | 
			
		||||
		return -1;
 | 
			
		||||
	}
 | 
			
		||||
	while (s->parent) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue