diff options
author | christian mueller <christian.ei.mueller@bmw.de> | 2012-01-30 18:38:07 +0100 |
---|---|---|
committer | christian mueller <christian.ei.mueller@bmw.de> | 2012-01-31 17:40:32 +0100 |
commit | ad0c452e9890a35a1b7a6c2e2421e092c5cf2c2d (patch) | |
tree | 48cc38fa0a4ada0ece0f8571260c5438b64a675c /AudioManagerDaemon/src/SocketHandler.cpp | |
parent | 58d62c4af578c10375bf9baa946e33f340c42a1f (diff) | |
download | audiomanager-ad0c452e9890a35a1b7a6c2e2421e092c5cf2c2d.tar.gz |
* wrapping DLT calls in a new Class because of performance, codesize and lazyness reasons
* the whole project now compiles without a warning with -pedantic
Diffstat (limited to 'AudioManagerDaemon/src/SocketHandler.cpp')
-rw-r--r-- | AudioManagerDaemon/src/SocketHandler.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/AudioManagerDaemon/src/SocketHandler.cpp b/AudioManagerDaemon/src/SocketHandler.cpp index dbff14c..26f6d66 100644 --- a/AudioManagerDaemon/src/SocketHandler.cpp +++ b/AudioManagerDaemon/src/SocketHandler.cpp @@ -31,14 +31,11 @@ #include <algorithm> #include <time.h> #include <features.h> -#include <dlt/dlt.h> #include <signal.h> +#include "DLTWrapper.h" -#include <iostream> //todo: implement time correction if timer was interrupted by call -DLT_IMPORT_CONTEXT(AudioManager) - using namespace am; SocketHandler::SocketHandler() : @@ -112,7 +109,7 @@ void SocketHandler::start_listenting() } else { - DLT_LOG(AudioManager, DLT_LOG_ERROR, DLT_STRING("SocketHandler::start_listenting ppoll returned with error"), DLT_INT(errno)); + logError("SocketHandler::start_listenting ppoll returned with error",errno); exit(0); } } @@ -128,7 +125,7 @@ void SocketHandler::start_listenting() //todo: add things to do here before going to sleep exit(0); } - DLT_LOG(AudioManager, DLT_LOG_ERROR, DLT_STRING("SocketHandler::start_listenting poll returned with error"),DLT_INT(errno)); + logError("SocketHandler::start_listenting poll returned with error",errno); exit(0); } //sigprocmask (SIG_SETMASK, &oldmask, NULL); |