From abb3af7826af4a4ebd0aaf669e27c3ad4628dafe Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Fri, 18 Dec 2020 16:43:22 +0000 Subject: [PATCH] Invert gate on printf attribute Inverted the logic without thinking. Signed-off-by: Paul Elliott --- include/mbedtls/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/debug.h b/include/mbedtls/debug.h index ff8aec0ab..168f70dd0 100644 --- a/include/mbedtls/debug.h +++ b/include/mbedtls/debug.h @@ -93,10 +93,10 @@ * This module provides debugging functions. */ #if defined(__GNUC__) -#define MBEDTLS_PRINTF_ATTRIBUTE(string_index, first_to_check) -#else #define MBEDTLS_PRINTF_ATTRIBUTE(string_index, first_to_check) \ __attribute__((format (printf, string_index, first_to_check))) +#else +#define MBEDTLS_PRINTF_ATTRIBUTE(string_index, first_to_check) #endif #ifdef __cplusplus