From d7b697d96b02e7a840e7338a864d7aaa28a61479 Mon Sep 17 00:00:00 2001 From: christian mueller Date: Tue, 15 May 2012 09:57:50 +0200 Subject: * [GAM-76] fix : add 64bit support for DLT logging Signed-off-by: christian mueller --- AudioManagerDaemon/src/CAmDltWrapper.cpp | 18 ++++++++++++++++++ .../test/AmSocketHandlerTest/CAmSocketHandlerTest.cpp | 2 +- include/shared/CAmDltWrapper.h | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/AudioManagerDaemon/src/CAmDltWrapper.cpp b/AudioManagerDaemon/src/CAmDltWrapper.cpp index 61d79c2..2d4fffe 100644 --- a/AudioManagerDaemon/src/CAmDltWrapper.cpp +++ b/AudioManagerDaemon/src/CAmDltWrapper.cpp @@ -200,6 +200,24 @@ void CAmDltWrapper::append(const bool value) #endif } +void CAmDltWrapper::append(const int64_t value) +{ +#ifdef WITH_DLT + dlt_user_log_write_int64(&mDltContextData, value); +#else + appendNoDLT(value); +#endif +} + +void CAmDltWrapper::append(const uint64_t value) +{ +#ifdef WITH_DLT + dlt_user_log_write_uint64(&mDltContextData, value); +#else + appendNoDLT(value); +#endif +} + #ifndef WITH_DLT template void CAmDltWrapper::appendNoDLT(T value) { diff --git a/AudioManagerDaemon/test/AmSocketHandlerTest/CAmSocketHandlerTest.cpp b/AudioManagerDaemon/test/AmSocketHandlerTest/CAmSocketHandlerTest.cpp index 09e0ea7..d357d80 100644 --- a/AudioManagerDaemon/test/AmSocketHandlerTest/CAmSocketHandlerTest.cpp +++ b/AudioManagerDaemon/test/AmSocketHandlerTest/CAmSocketHandlerTest.cpp @@ -19,7 +19,7 @@ */ #include "CAmSocketHandlerTest.h" -#include +#include #include #include #include diff --git a/include/shared/CAmDltWrapper.h b/include/shared/CAmDltWrapper.h index c9dd4c2..a29bf2e 100644 --- a/include/shared/CAmDltWrapper.h +++ b/include/shared/CAmDltWrapper.h @@ -102,6 +102,8 @@ public: void append(const uint16_t value); void append(const int32_t value); void append(const uint32_t value); + void append(const uint64_t value); + void append(const int64_t value); void append(const char*& value); void append(const std::string& value); void append(const bool value); -- cgit v1.2.1