From 2332f8f435c04a291b7294d97f8a136f42902fe2 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 22 Feb 2021 16:58:16 +0000 Subject: [PATCH] Rename static variable for MPS trace depth Signed-off-by: Hanno Becker --- library/mps_trace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/mps_trace.c b/library/mps_trace.c index ceddffb56..28b05bb79 100644 --- a/library/mps_trace.c +++ b/library/mps_trace.c @@ -26,7 +26,7 @@ #include "mps_trace.h" #include -static int trace_depth_ = 0; +static int trace_depth = 0; #define color_default "\x1B[0m" #define color_red "\x1B[1;31m" @@ -68,15 +68,15 @@ void mbedtls_mps_trace_print_msg( int id, int line, const char *format, ... ) int mbedtls_mps_trace_get_depth() { - return trace_depth_; + return trace_depth; } void mbedtls_mps_trace_dec_depth() { - trace_depth_--; + trace_depth--; } void mbedtls_mps_trace_inc_depth() { - trace_depth_++; + trace_depth++; } void mbedtls_mps_trace_color( int id )