mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-11-04 04:50:35 +00:00 
			
		
		
		
	lib: fix printf format on NetBSD
*sigh*. It doesn't accept `%m` otherwise. Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
		
							parent
							
								
									c6610ea98f
								
							
						
					
					
						commit
						ca846ff82c
					
				@ -356,7 +356,11 @@ extern "C" {
 | 
			
		||||
#define PRIx64 "Lx"
 | 
			
		||||
 | 
			
		||||
#else /* !_FRR_ATTRIBUTE_PRINTFRR */
 | 
			
		||||
#ifdef __NetBSD__
 | 
			
		||||
#define PRINTFRR(a, b) __attribute__((format(gnu_syslog, a, b)))
 | 
			
		||||
#else
 | 
			
		||||
#define PRINTFRR(a, b) __attribute__((format(printf, a, b)))
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/* frr-format plugin is C-only for now, so no point in doing these shenanigans
 | 
			
		||||
 * for C++...  (also they can break some C++ stuff...)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user