mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
				synced 2025-11-03 21:53:18 +00:00 
			
		
		
		
	Under armv7l arch, size_t is actually an unsigned int and not a long
unsigned int, and compiler errors:
CommonLibs/debug.h:28:24: error: format ‘%lu’ expects argument of type
‘long unsigned int’, but argument 8 has type ‘size_t {aka unsigned int}’ [-Werror=format=]
Change-Id: I7f6ded5a984570b5267916d6c84eb7d019db73a8
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			571 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			571 B
		
	
	
	
		
			C
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <stdbool.h>
 | 
						|
#include <sys/types.h>
 | 
						|
 | 
						|
#include <osmocom/core/logging.h>
 | 
						|
 | 
						|
extern const struct log_info log_info;
 | 
						|
 | 
						|
/* Debug Areas of the code */
 | 
						|
enum {
 | 
						|
	DMAIN,
 | 
						|
	DTRXCLK,
 | 
						|
	DTRXCTRL,
 | 
						|
	DTRXDDL,
 | 
						|
	DTRXDUL,
 | 
						|
	DDEV,
 | 
						|
	DDEVDRV,
 | 
						|
};
 | 
						|
 | 
						|
pid_t my_gettid(void);
 | 
						|
 | 
						|
#define CLOGC(category, level, fmt, args...) do { \
 | 
						|
	LOGP(category, level, "[tid=%ld] " fmt, (long int) my_gettid(), ##args);  \
 | 
						|
} while(0)
 | 
						|
 | 
						|
#define CLOGCHAN(chan, category, level, fmt, args...) do { \
 | 
						|
	LOGP(category, level, "[tid=%ld][chan=%zu] " fmt, (long int) my_gettid(), chan, ##args);  \
 | 
						|
} while(0)
 |