From 5bcd206b9270d9a79e212f91723ea1a08a4d4859 Mon Sep 17 00:00:00 2001 From: Christian Linke Date: Thu, 11 Feb 2016 07:28:47 +0100 Subject: * rework of the build structure, adopt to standard cmake package structure * 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 Signed-off-by: Christian Linke --- AudioManagerUtilities/include/CAmDltWrapper.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'AudioManagerUtilities/include/CAmDltWrapper.h') 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 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 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; -- cgit v1.2.1