mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Remove src/common/log.c
Use wlr_log() instead
This commit is contained in:
		
							parent
							
								
									20fd8f59a7
								
							
						
					
					
						commit
						82e47ac1f5
					
				
					 20 changed files with 28 additions and 65 deletions
				
			
		| 
						 | 
				
			
			@ -12,7 +12,6 @@
 | 
			
		|||
#include <wayland-server-core.h>
 | 
			
		||||
#include <wlr/util/log.h>
 | 
			
		||||
#include "common/dir.h"
 | 
			
		||||
#include "common/log.h"
 | 
			
		||||
#include "common/nodename.h"
 | 
			
		||||
#include "common/string-helpers.h"
 | 
			
		||||
#include "common/zfree.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -227,7 +226,7 @@ rcxml_parse_xml(struct buf *b)
 | 
			
		|||
{
 | 
			
		||||
	xmlDoc *d = xmlParseMemory(b->buf, b->len);
 | 
			
		||||
	if (!d) {
 | 
			
		||||
		warn("xmlParseMemory()");
 | 
			
		||||
		wlr_log(WLR_ERROR, "xmlParseMemory()");
 | 
			
		||||
		exit(EXIT_FAILURE);
 | 
			
		||||
	}
 | 
			
		||||
	xml_tree_walk(xmlDocGetRootElement(d));
 | 
			
		||||
| 
						 | 
				
			
			@ -330,7 +329,7 @@ rcxml_read(const char *filename)
 | 
			
		|||
	/* Reading file into buffer before parsing - better for unit tests */
 | 
			
		||||
	stream = fopen(rcxml, "r");
 | 
			
		||||
	if (!stream) {
 | 
			
		||||
		warn("cannot read (%s)", rcxml);
 | 
			
		||||
		wlr_log(WLR_ERROR, "cannot read (%s)", rcxml);
 | 
			
		||||
		goto no_config;
 | 
			
		||||
	}
 | 
			
		||||
	wlr_log(WLR_INFO, "read config file %s", rcxml);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue