mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Remove noused debug function srs_trace_data
This commit is contained in:
		
							parent
							
								
									aacf519169
								
							
						
					
					
						commit
						bc26df4893
					
				
					 1 changed files with 0 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -142,26 +142,5 @@ extern ISrsThreadContext* _srs_context;
 | 
			
		|||
    #define srs_trace(msg, ...) (void)0
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
inline void srs_trace_data(const char* data_p, int len, const char* dscr)
 | 
			
		||||
{
 | 
			
		||||
    const int MAX = 256;
 | 
			
		||||
    char debug_data[MAX];
 | 
			
		||||
    char debug_len = 0;
 | 
			
		||||
 | 
			
		||||
    debug_len += sprintf(debug_data + debug_len, "%s", dscr);
 | 
			
		||||
 | 
			
		||||
    for (int index = 0; index < len; index++) {
 | 
			
		||||
        if (index % 16 == 0) {
 | 
			
		||||
            debug_len += sprintf(debug_data + debug_len, "\r\n");
 | 
			
		||||
        }
 | 
			
		||||
        debug_len += sprintf(debug_data + debug_len, " %02x", (unsigned char)data_p[index]);
 | 
			
		||||
        if (index >= 32) {
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    srs_trace("%s", debug_data);
 | 
			
		||||
    return;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue