mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	logger.h: Fix build when AST_DEVMODE is not defined.
Resolves: #1058
(cherry picked from commit 92d69897b7)
			
			
This commit is contained in:
		
				
					committed by
					
						
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							2dd6a4aa66
						
					
				
				
					commit
					e35d341cd7
				
			@@ -897,7 +897,7 @@ unsigned long _ast_trace_dec_indent(void);
 | 
			
		||||
	__type __var; \
 | 
			
		||||
	ast_trace(level, "--> Calling %s\n", #__funcname); \
 | 
			
		||||
	__var = __funcname(__VA_ARGS__); \
 | 
			
		||||
	ast_trace(level, "<-- Return from %s\n", #__funcname) \
 | 
			
		||||
	ast_trace(level, "<-- Return from %s\n", #__funcname); \
 | 
			
		||||
	__var; \
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -1015,7 +1015,7 @@ unsigned long _ast_trace_dec_indent(void);
 | 
			
		||||
	__funcname(__VA_ARGS__)
 | 
			
		||||
 | 
			
		||||
#define SCOPE_CALL_WITH_RESULT(level, __var, __funcname, ...) \
 | 
			
		||||
	__var = __funcname(__VA_ARGS__)
 | 
			
		||||
	__funcname(__VA_ARGS__)
 | 
			
		||||
 | 
			
		||||
#define SCOPE_CALL_WITH_INT_RESULT(level, __funcname, ...) \
 | 
			
		||||
	__funcname(__VA_ARGS__)
 | 
			
		||||
 
 | 
			
		||||
@@ -632,7 +632,7 @@ static enum ast_sip_check_auth_result digest_check_auth(struct ast_sip_endpoint
 | 
			
		||||
		 * sending challenges. We don't need to verify them.
 | 
			
		||||
		 */
 | 
			
		||||
		if (auth->type == AST_SIP_AUTH_TYPE_ARTIFICIAL) {
 | 
			
		||||
			ast_trace(-1, "%s:%s:%s: Skipping verification on artificial endpoint\n", endpoint_id, auth_id, src_name )
 | 
			
		||||
			ast_trace(-1, "%s:%s:%s: Skipping verification on artificial endpoint\n", endpoint_id, auth_id, src_name);
 | 
			
		||||
			verify_res[idx] = AUTH_NOAUTH;
 | 
			
		||||
		} else {
 | 
			
		||||
			verify_res[idx] = SCOPE_CALL_WITH_RESULT(-1, int, verify, endpoint_id, auth, rdata, tdata->pool);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user