summaryrefslogtreecommitdiff
path: root/src/lib/dlt_user.c
diff options
context:
space:
mode:
authorStefan Vacek <stefan.vacek@intel.com>2015-12-02 09:24:52 +0100
committerLutz Helwing <lutz_helwing@mentor.com>2015-12-09 16:02:28 +0100
commit135e75439eff9cb7171d8b5bcf2ff6a27d0bf132 (patch)
tree25c167511d1646328217b8bd9e47748c6c6f1c24 /src/lib/dlt_user.c
parent4251a7db0b2a576316a2a5435b72a709fd6101b0 (diff)
downloadDLT-daemon-135e75439eff9cb7171d8b5bcf2ff6a27d0bf132.tar.gz
Set default log-levels in dlt.conf
- feature: allow to define a default-log-level in dlt.conf (see dlt.conf for documentation) - bugfix: make dlt_unlock_mutex not inline to fix linkage - bugfix: initial log-level was not set correctly when no dlt-daemon was running Signed-off-by: Stefan Vacek <stefan.vacek@intel.com>
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r--src/lib/dlt_user.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index 8a5d683..d5ed200 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -102,7 +102,7 @@ void dlt_lock_mutex(pthread_mutex_t *mutex)
}
}
-inline void dlt_unlock_mutex(pthread_mutex_t *mutex)
+void dlt_unlock_mutex(pthread_mutex_t *mutex)
{
pthread_mutex_unlock(mutex);
}
@@ -1054,6 +1054,8 @@ DltReturnValue dlt_unregister_context(DltContext *handle)
DltContextData log;
DltReturnValue ret = DLT_RETURN_OK;
+ log.handle = NULL;
+ log.context_description = NULL;
if (dlt_user_log_init(handle, &log) <= DLT_RETURN_ERROR)
return DLT_RETURN_ERROR;