Fixed fill_ul_mutex

Mutexes were not being initialized. In multiple
places they were not being unlocked. In fill rach
it was not being locked or unlocked.
This commit is contained in:
Melissa Elkadi
2021-02-15 12:40:32 -08:00
parent bc524ea192
commit 26e3f32b69
4 changed files with 32 additions and 4 deletions
+3 -1
View File
@@ -479,6 +479,7 @@ char *log_getthreadname(char *threadname,
}
#if LOG_MINIMAL
#include <sys/syscall.h>
void logMinimal(int comp, int level, const char *format, ...)
{
struct timespec ts;
@@ -486,9 +487,10 @@ void logMinimal(int comp, int level, const char *format, ...)
abort();
char buf[MAX_LOG_TOTAL];
int n = snprintf(buf, sizeof(buf), "%lu.%06lu [%s] %c ",
int n = snprintf(buf, sizeof(buf), "%lu.%06lu %08lx [%s] %c ",
ts.tv_sec,
ts.tv_nsec / 1000,
syscall(__NR_gettid),
g_log->log_component[comp].name,
level);
if (n < 0 || n >= sizeof(buf))