mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 08:08:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										34
									
								
								drivers/s390/cio/cio_debug.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								drivers/s390/cio/cio_debug.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,34 @@ | |||
| #ifndef CIO_DEBUG_H | ||||
| #define CIO_DEBUG_H | ||||
| 
 | ||||
| #include <asm/debug.h> | ||||
| 
 | ||||
| /* for use of debug feature */ | ||||
| extern debug_info_t *cio_debug_msg_id; | ||||
| extern debug_info_t *cio_debug_trace_id; | ||||
| extern debug_info_t *cio_debug_crw_id; | ||||
| 
 | ||||
| #define CIO_TRACE_EVENT(imp, txt) do {				\ | ||||
| 		debug_text_event(cio_debug_trace_id, imp, txt); \ | ||||
| 	} while (0) | ||||
| 
 | ||||
| #define CIO_MSG_EVENT(imp, args...) do {				\ | ||||
| 		debug_sprintf_event(cio_debug_msg_id, imp , ##args);	\ | ||||
| 	} while (0) | ||||
| 
 | ||||
| #define CIO_CRW_EVENT(imp, args...) do {				\ | ||||
| 		debug_sprintf_event(cio_debug_crw_id, imp , ##args);	\ | ||||
| 	} while (0) | ||||
| 
 | ||||
| static inline void CIO_HEX_EVENT(int level, void *data, int length) | ||||
| { | ||||
| 	if (unlikely(!cio_debug_trace_id)) | ||||
| 		return; | ||||
| 	while (length > 0) { | ||||
| 		debug_event(cio_debug_trace_id, level, data, length); | ||||
| 		length -= cio_debug_trace_id->buf_size; | ||||
| 		data += cio_debug_trace_id->buf_size; | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| #endif | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228