From ff4829284b84592005364ad79ae4a72dcf80b4b4 Mon Sep 17 00:00:00 2001 From: frtabu <francois.taburet@nokia-bell-labs.com> Date: Wed, 12 Feb 2020 20:29:51 +0100 Subject: [PATCH] --amend --- common/utils/T/local_tracer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/utils/T/local_tracer.c b/common/utils/T/local_tracer.c index 8cbd06490de..539e72b2239 100644 --- a/common/utils/T/local_tracer.c +++ b/common/utils/T/local_tracer.c @@ -15,7 +15,7 @@ #include "T_messages.txt.h" #include "T_defs.h" #include "T_IDs.h" -#include "softmodem-common.h" + static T_cache_t *T_local_cache; static int T_busylist_head; @@ -357,7 +357,7 @@ static void forward(void *_forwarder, char *buf, int size) { if (f->tail != NULL) f->tail->next = new; f->tail = new; - if( IS_SOFTMODEM_BASICSIM){ +#if BASIC_SIMULATOR /* When runnng the basic simulator, the tracer may be too slow. * Let's not take too much memory in the tracee and * wait if there is too much data to send. 200MB is @@ -372,7 +372,7 @@ static void forward(void *_forwarder, char *buf, int size) { if (pthread_mutex_lock(&f->lock)) abort(); } - } +#endif f->memusage += size+4; /* warn every 100MB */ -- GitLab