diff options
Diffstat (limited to 'AudioManagerDaemon')
-rw-r--r-- | AudioManagerDaemon/src/CAmDltWrapper.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/AudioManagerDaemon/src/CAmDltWrapper.cpp b/AudioManagerDaemon/src/CAmDltWrapper.cpp index d1bbab2..ef83738 100644 --- a/AudioManagerDaemon/src/CAmDltWrapper.cpp +++ b/AudioManagerDaemon/src/CAmDltWrapper.cpp @@ -108,19 +108,21 @@ void CAmDltWrapper::registerContext(DltContext& handle, const char *contextid, c #endif } -void CAmDltWrapper::init(DltLogLevelType loglevel, DltContext* context) +int CAmDltWrapper::init(DltLogLevelType loglevel, DltContext* context) { (void) loglevel; pthread_mutex_lock(&mMutex); if (!context) context = &mDltContext; + int result; #ifdef WITH_DLT - dlt_user_log_write_start(context, &mDltContextData, loglevel); + result = dlt_user_log_write_start(context, &mDltContextData, loglevel); #else + result = -1; if(mEnableNoDLTDebug) std::cout << "\e[0;34m[" << context->contextID << "]\e[0;30m\t"; #endif - + return result; } void CAmDltWrapper::send() |