|  |  | @ -1,5 +1,4 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | #ifndef SWAGLOG_H |  |  |  | #pragma once | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | #define SWAGLOG_H |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | #include "selfdrive/common/timing.h" |  |  |  | #include "selfdrive/common/timing.h" | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -9,19 +8,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | #define CLOUDLOG_ERROR 40 |  |  |  | #define CLOUDLOG_ERROR 40 | 
			
		
	
		
		
			
				
					
					|  |  |  | #define CLOUDLOG_CRITICAL 50 |  |  |  | #define CLOUDLOG_CRITICAL 50 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | #ifdef __cplusplus |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | extern "C" { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | #endif |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | void cloudlog_e(int levelnum, const char* filename, int lineno, const char* func, |  |  |  | void cloudlog_e(int levelnum, const char* filename, int lineno, const char* func, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 const char* fmt, ...) /*__attribute__ ((format (printf, 6, 7)))*/; |  |  |  |                 const char* fmt, ...) /*__attribute__ ((format (printf, 6, 7)))*/; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | void cloudlog_bind(const char* k, const char* v); |  |  |  | void cloudlog_bind(const char* k, const char* v); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | #ifdef __cplusplus |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | #endif |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | #define cloudlog(lvl, fmt, ...) cloudlog_e(lvl, __FILE__, __LINE__, \ |  |  |  | #define cloudlog(lvl, fmt, ...) cloudlog_e(lvl, __FILE__, __LINE__, \ | 
			
		
	
		
		
			
				
					
					|  |  |  |                                            __func__, \
 |  |  |  |                                            __func__, \
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                                            fmt, ## __VA_ARGS__) |  |  |  |                                            fmt, ## __VA_ARGS__) | 
			
		
	
	
		
		
			
				
					|  |  | @ -64,5 +55,3 @@ void cloudlog_bind(const char* k, const char* v); | 
			
		
	
		
		
			
				
					
					|  |  |  | #define LOG_100(fmt, ...) cloudlog_rl(2, 100, CLOUDLOG_INFO, fmt, ## __VA_ARGS__) |  |  |  | #define LOG_100(fmt, ...) cloudlog_rl(2, 100, CLOUDLOG_INFO, fmt, ## __VA_ARGS__) | 
			
		
	
		
		
			
				
					
					|  |  |  | #define LOGW_100(fmt, ...) cloudlog_rl(2, 100, CLOUDLOG_WARNING, fmt, ## __VA_ARGS__) |  |  |  | #define LOGW_100(fmt, ...) cloudlog_rl(2, 100, CLOUDLOG_WARNING, fmt, ## __VA_ARGS__) | 
			
		
	
		
		
			
				
					
					|  |  |  | #define LOGE_100(fmt, ...) cloudlog_rl(2, 100, CLOUDLOG_ERROR, fmt, ## __VA_ARGS__) |  |  |  | #define LOGE_100(fmt, ...) cloudlog_rl(2, 100, CLOUDLOG_ERROR, fmt, ## __VA_ARGS__) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | #endif |  |  |  |  | 
			
		
	
	
		
		
			
				
					|  |  | 
 |