enable printf format checking for dds_log
Also remove superfluous parameters in a TRACE statement and fix a format specification in pong.c. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
		
							parent
							
								
									bb7373b90d
								
							
						
					
					
						commit
						21a1c4aa33
					
				
					 3 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -25,6 +25,7 @@
 | 
			
		|||
#include <stdio.h>
 | 
			
		||||
 | 
			
		||||
#include "dds/export.h"
 | 
			
		||||
#include "dds/ddsrt/attributes.h"
 | 
			
		||||
 | 
			
		||||
#if defined (__cplusplus)
 | 
			
		||||
extern "C" {
 | 
			
		||||
| 
						 | 
				
			
			@ -199,7 +200,8 @@ dds_log(
 | 
			
		|||
    uint32_t line,
 | 
			
		||||
    const char *func,
 | 
			
		||||
    const char *fmt,
 | 
			
		||||
    ...);
 | 
			
		||||
    ...)
 | 
			
		||||
  ddsrt_attribute_format((__printf__, 5, 6));
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Undecorated function name of the current function.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue