summaryrefslogtreecommitdiff
path: root/AudioManagerUtilities/include/CAmDltWrapper.h
diff options
context:
space:
mode:
authorChristian Linke <Christian.Linke@bmw.de>2016-02-11 07:28:47 +0100
committerChristian Linke <Christian.Linke@bmw.de>2016-02-15 09:00:59 +0100
commit5bcd206b9270d9a79e212f91723ea1a08a4d4859 (patch)
tree55b0cd4d07fbd7ebfd15d58d02e9cae6ae61b127 /AudioManagerUtilities/include/CAmDltWrapper.h
parent59080ecc2c8840fd85c561adea3f85f5344534a8 (diff)
downloadaudiomanager-5bcd206b9270d9a79e212f91723ea1a08a4d4859.tar.gz
* rework of the build structure, adopt to standard cmake package structure7.4
* check versions when loading the libs * introduction of the AudioManagerCore * give control plugin as file or directory * remove SQLITE * either find and use gmock or build and install it * fixed [Bug 411] * compile flag gnu11 is now used Signed-off-by: Christian Linke <Christian.Linke@bmw.de> Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
Diffstat (limited to 'AudioManagerUtilities/include/CAmDltWrapper.h')
-rw-r--r--AudioManagerUtilities/include/CAmDltWrapper.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/AudioManagerUtilities/include/CAmDltWrapper.h b/AudioManagerUtilities/include/CAmDltWrapper.h
index 7e4d2d4..d227929 100644
--- a/AudioManagerUtilities/include/CAmDltWrapper.h
+++ b/AudioManagerUtilities/include/CAmDltWrapper.h
@@ -131,7 +131,10 @@ public:
template<typename T = const char*> void append(const char* value)
{
#ifdef WITH_DLT
- dlt_user_log_write_string(&mDltContextData, value);
+ if(mEnableNoDLTDebug)
+ {
+ dlt_user_log_write_string(&mDltContextData, value);
+ }
#else
mDltContextData.buffer << value;
#endif
@@ -153,7 +156,8 @@ public:
"E_ABORTED",
"E_WRONG_FORMAT"
};
- append(str_error[value]);
+ if(mEnableNoDLTDebug)
+ append(str_error[value]);
}
// Template to print unknown pointer types with their address
@@ -188,10 +192,10 @@ private:
CAmDltWrapper(const bool enableNoDLTDebug); //is private because of singleton pattern
#ifndef WITH_DLT
template<class T> void appendNoDLT(T value);
- bool mEnableNoDLTDebug;
#endif
DltContext mDltContext; //!< the default context
DltContextData mDltContextData; //!< contextdata
+ bool mEnableNoDLTDebug;
static CAmDltWrapper* mpDLTWrapper; //!< pointer to the wrapper instance
static pthread_mutex_t mMutex;