ivshmem: Compile debug prints unconditionally to prevent bit-rot
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <1458066895-20632-13-git-send-email-armbru@redhat.com>
This commit is contained in:
		
							parent
							
								
									97553976dd
								
							
						
					
					
						commit
						a4fa93bf20
					
				@ -48,13 +48,13 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define IVSHMEM_REG_BAR_SIZE 0x100
 | 
					#define IVSHMEM_REG_BAR_SIZE 0x100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//#define DEBUG_IVSHMEM
 | 
					#define IVSHMEM_DEBUG 0
 | 
				
			||||||
#ifdef DEBUG_IVSHMEM
 | 
					#define IVSHMEM_DPRINTF(fmt, ...)                       \
 | 
				
			||||||
#define IVSHMEM_DPRINTF(fmt, ...)        \
 | 
					    do {                                                \
 | 
				
			||||||
    do {printf("IVSHMEM: " fmt, ## __VA_ARGS__); } while (0)
 | 
					        if (IVSHMEM_DEBUG) {                            \
 | 
				
			||||||
#else
 | 
					            printf("IVSHMEM: " fmt, ## __VA_ARGS__);    \
 | 
				
			||||||
#define IVSHMEM_DPRINTF(fmt, ...)
 | 
					        }                                               \
 | 
				
			||||||
#endif
 | 
					    } while (0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define TYPE_IVSHMEM "ivshmem"
 | 
					#define TYPE_IVSHMEM "ivshmem"
 | 
				
			||||||
#define IVSHMEM(obj) \
 | 
					#define IVSHMEM(obj) \
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user