summaryrefslogtreecommitdiff
path: root/includes/DLTWrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/DLTWrapper.h')
-rw-r--r--includes/DLTWrapper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/DLTWrapper.h b/includes/DLTWrapper.h
index 3a9482a..a133f38 100644
--- a/includes/DLTWrapper.h
+++ b/includes/DLTWrapper.h
@@ -32,6 +32,7 @@
#else
#include <stdint.h>
+#include <sstream>
#define DLT_USER_BUF_MAX_SIZE 2048
@@ -65,8 +66,7 @@ typedef enum
typedef struct
{
DltContext *handle; /**< pointer to DltContext */
- char buffer[DLT_USER_BUF_MAX_SIZE]; /**< buffer for building log message*/
- int32_t size; /**< payload size */
+ std::stringstream buffer; /**< buffer for building log message*/
int32_t log_level; /**< log level */
int32_t trace_status; /**< trace status */
int32_t args_num; /**< number of arguments for extended header*/
@@ -81,7 +81,7 @@ DltContext CONTEXT;
#define DLT_IMPORT_CONTEXT(CONTEXT) \
extern DltContext CONTEXT;
-#endif
+#endif // WITH_DLT
#include <string>